Jsp tag file例子以及说明(15)
}
catch( java.lang.Throwable e ) {
if (e instanceof javax.servlet.jsp.SkipPageException)
throw (javax.servlet.jsp.SkipPageException) e;
throw new javax.servlet.jsp.JspException( e );
}
finally {
if( writer != null ) {
this.jspContext.popBody();
}
}
}
}
invokeDemo_tag.java
[java]
private javax.servlet.jsp.tagext.JspFragment productDetails;
public javax.servlet.jsp.tagext.JspFragment getProductDetails() {
return this.productDetails;
}
public void setProductDetails(javax.servlet.jsp.tagext.JspFragment productDetails) {
this.productDetails = productDetails;
jspContext.setAttribute("productDetails", productDetails);
}
public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
return _jspx_dependants;
}
......
public void doTag() throws javax.servlet.jsp.JspException, java.io.IOException {
javax.servlet.jsp.PageContext _jspx_page_context = (javax.servlet.jsp.PageContext)jspContext;
javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest) _jspx_page_context.getRequest();
javax.servlet.http.HttpServletResponse response = (javax.servlet.http.HttpServletResponse) _jspx_page_context.getResponse();
javax.servlet.http.HttpSession session = _jspx_page_context.getSession();
javax.servlet.ServletContext application = _jspx_page_context.getServletContext();
javax.servlet.ServletConfig config = _jspx_page_context.getServletConfig();
javax.servlet.jsp.JspWriter out = jspContext.getOut();
_jspInit(config);
jspContext.getELContext().putContext(javax.servlet.jsp.JspContext.class,jspContext);
if( getProductDetails() != null )
_jspx_page_context.setAttribute("productDetails", getProductDetails());
try {
out.write("\r\n");
out.write("\r\n");
相关新闻>>
- 发表评论
-
- 最新评论 更多>>