title.java

来自「企业进销存源码」· Java 代码 · 共 50 行

JAVA
50
字号
package com.web.tag;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.*;
/**
 * 
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */ 
public class Title extends TagSupport {
	private String name = "";
	public int doStartTag() throws JspException {
		try {
			JspWriter out = pageContext.getOut();
			out.println(
				"<img border=0 height=22 align=absmiddle src=\"/jxcWeb/images/doc1.gif\">&nbsp;<b><font color=\"#000080\">"
					+ name
					+ "</font></b>");

		} catch (IOException ioExc) {
			throw new JspException(ioExc.toString());
		}

		return EVAL_BODY_INCLUDE;
	}

	public int doEndTag() throws JspException {
		return EVAL_PAGE;
	}

	/**
	 * Returns the name.
	 * @return String
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 * @param name The name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
}

⌨️ 快捷键说明

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