Jsp tag file例子以及说明(18)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:35 点击:次
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("2^3=");
if (_jspx_meth_easy_005fpower_005f0(_jspx_page_context))//调用tag file处理方法
return;
} catch (java.lang.Throwable t) {
if (!(t instanceof javax.servlet.jsp.SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_easy_005fpower_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// easy:power
org.apache.jsp.tag.web.power_tag _jspx_th_easy_005fpower_005f0 = (new org.apache.jsp.tag.web.power_tag());
_jsp_instancemanager.newInstance(_jspx_th_easy_005fpower_005f0);
_jspx_th_easy_005fpower_005f0.setJspContext(_jspx_page_context);
// /powerTagTest.jsp(2,4) name = number type = java.lang.String reqTime = true required = true fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_easy_005fpower_005f0.setNumber("2"); //设置tag参数
// /powerTagTest.jsp(2,4) name = power type = java.lang.String reqTime = true required = true fragment = false deferredValue = false expectedTypeName = java.lang.String deferredMethod = false methodSignature = null
_jspx_th_easy_005fpower_005f0.setPower("3");//设置tag参数
_jspx_th_easy_005fpower_005f0.doTag();
_jsp_instancemanager.destroyInstance(_jspx_th_easy_005fpower_005f0);
return false;
}
power_tag.java
[java]
private java.lang.String number;//根据atrribute生成
private java.lang.String power;//根据attribute生成
public java.lang.String getNumber() {
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>