⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 place.java

📁 企业进销存源码
💻 JAVA
字号:
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 Place extends TagSupport {
	private String name = "";
	private String back = "";
	public int doStartTag() throws JspException {
		try {
			JspWriter out = pageContext.getOut();
			out.println(
				"<table class=table-top01 width=100% align=center border=0 cellspacing=0 cellpadding=0><tr>"
					+ "<td width=60% height=25 valign=middle align=left><a href=\"/jxcWeb/main.jsp\" class=a01>&nbsp;工业进销存管理系统</a><b>--></b>"
					+ name
					+ "</td>");
			

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

		return EVAL_BODY_INCLUDE;
	}

	public int doEndTag() throws JspException {
		try {
			JspWriter out = pageContext.getOut();
			if(!back.equals("")) {
				if(!back.equals("back")) {
					out.println("<td valign=middle align=right><input type=button class=btn3_mouseout onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\" onclick=\"javascript:(location.href=('"+back+"'))\" value=返回列表></td>");
				}else{
					out.println("<td valign=middle align=right><input type=button class=btn3_mouseout onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\" onclick=\"javascript:history.back();\" value=返回列表></td>");
				}
			}
			out.println(
				"</tr><tr><td width=100% height=1 background=\"/jxcWeb/images/hline_bg.gif\" colspan=3></td></tr></table>");
		} catch (IOException ioExc) {
			throw new JspException(ioExc.toString());
		}

		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;
	}
	/**
	 * Returns the back.
	 * @return String
	 */
	public String getBack() {
		return back;
	}

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

}

⌨️ 快捷键说明

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