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

📄 basesearchselectrecordtag.java

📁 j2ee源码
💻 JAVA
字号:
/*
 * Created on 2005/11/11
 */
package com.leeman.common.web.ui.tags;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.JspException;

/**
 * @author Dennis
 */
public class BaseSearchSelectRecordTag extends TagSupport{
	
	private String actionURL;
	private String indexId;
	
	public int doStartTag() throws javax.servlet.jsp.JspException{
		try{
			HttpServletRequest request =(HttpServletRequest)pageContext.getRequest();
			String shtml = "<a href=\"" + request.getContextPath() + actionURL + ".do?action=selectRecord&selectedIndex=" + pageContext.getAttribute(indexId) + "\">";
			pageContext.getOut().println(shtml);
		}catch(Exception e){
			throw new javax.servlet.jsp.JspException("Error processing BaseSearchSelectRecordTag.doStartTag()");
		}
		
		return EVAL_BODY_INCLUDE;
	}
	
	public int doEndTag() throws javax.servlet.jsp.JspException{
		HttpServletRequest request =(HttpServletRequest)pageContext.getRequest();
		try{
			pageContext.getOut().println("</a>");
		}catch(Exception e){
			throw new javax.servlet.jsp.JspException("Error processing BaseSearchSelectRecordTag.doEndTag(): " + e.toString());
		}
		
		return EVAL_PAGE;
	}
	/**
	 * @return
	 */
	public String getActionURL() {
		return actionURL;
	}

	/**
	 * @param string
	 */
	public void setActionURL(String string) {
		actionURL = string;
	}



	/**
	 * @return
	 */
	public String getIndexId() {
		return indexId;
	}

	/**
	 * @param string
	 */
	public void setIndexId(String string) {
		indexId = string;
	}

}

⌨️ 快捷键说明

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