title.java

来自「spring + ibatis + struts」· Java 代码 · 共 43 行

JAVA
43
字号
package tags;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class Title  extends TagSupport
{
	private static final long serialVersionUID = 1L;
	private String inputTitle;
	private String describe="";
	public int doEndTag() throws JspException
	{
		try
	    {
	        JspWriter out = pageContext.getOut(); // jsp out stream.
	        out.write(describe);
	        out.write("<h3><i>");
	        out.write(inputTitle);
	        out.write("</i></h3>");
	    }
        catch (IOException e)
        {
            throw new JspException(e);
        }
        return super.doEndTag();
    }
	/**
	 * @return the inputTitle
	 */
	public String getInputTitle() {
		return inputTitle;
	}
	/**
	 * @param inputTitle the inputTitle to set
	 */
	public void setInputTitle(String inputTitle) {
		this.inputTitle = inputTitle;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?