Jsp tag file例子以及说明(19)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:35 点击:次
return this.number;
}
public void setNumber(java.lang.String number) {
this.number = number;
jspContext.setAttribute("number", number);
}
public java.lang.String getPower() {
return this.power;
}
public void setPower(java.lang.String power) {
this.power = power;
jspContext.setAttribute("power", power);
}
......
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( getNumber() != null )
_jspx_page_context.setAttribute("number", getNumber());
if( getPower() != null )
_jspx_page_context.setAttribute("power", getPower());
try {
out.write(" \r\n");
out.write("\r\n");
out.write("\r\n");
out.print(Math.pow(Double.parseDouble(number), Double.parseDouble(power)));
} catch( java.lang.Throwable t ) {
if( t instanceof javax.servlet.jsp.SkipPageException )
throw (javax.servlet.jsp.SkipPageException) t;
if( t instanceof java.io.IOException )
throw (java.io.IOException) t;
if( t instanceof java.lang.IllegalStateException )
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>