Jsp tag file例子以及说明(11)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:35 点击:次
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_005fincludeDemoTag_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:includeDemoTag
org.apache.jsp.tag.web.includeDemoTag_tag _jspx_th_easy_005fincludeDemoTag_005f0 = (new org.apache.jsp.tag.web.includeDemoTag_tag());
_jsp_instancemanager.newInstance(_jspx_th_easy_005fincludeDemoTag_005f0);
_jspx_th_easy_005fincludeDemoTag_005f0.setJspContext(_jspx_page_context);
_jspx_th_easy_005fincludeDemoTag_005f0.doTag();
_jsp_instancemanager.destroyInstance(_jspx_th_easy_005fincludeDemoTag_005f0);
return false;
}
例子4 在jsp页面中调用tag file中的属性
invokeTest.jsp
[java]
<%@ taglib prefix="easy" tagdir="/WEB-INF/tags" %>
<html>
<head>
<title>Product Details</title>
</head>
<body>
<easy:invokeDemo>
<jsp:attribute name="productDetails">
<table width="220" border="1">
<tr>
<td><b>Product Name</b></td>
<td>${productName}</td>
</tr>
<tr>
<td><b>Description</b></td>
<td>${description}</td>
</tr>
<tr>
<td><b>Price</b></td>
<td>${price}</td>
</tr>
</table>
</jsp:attribute>
</easy:invokeDemo>
</body>
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>