package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fform_005faction;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005ftextfield_005fname_005flabel_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fsubmit_005fvalue_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fs_005fform_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005ftextfield_005fname_005flabel_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fsubmit_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fs_005fform_005faction.release();
_005fjspx_005ftagPool_005fs_005ftextfield_005fname_005flabel_005fnobody.release();
_005fjspx_005ftagPool_005fs_005fsubmit_005fvalue_005fnobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write("\"http://www.w3.org/TR/html4/loose.dtd\">\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
out.write(" <title>Test</title>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" 该程序仅为演示一个自己编写拦截器的例子,其他一切全部以简略为主\n");
out.write(" <p>\n");
out.write(" ");
if (_jspx_meth_s_005fform_005f0(_jspx_page_context))
return;
out.write("\n");
out.write(" </body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof 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_s_005fform_005f0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// s:form
org.apache.struts2.views.jsp.ui.FormTag _jspx_th_s_005fform_005f0 = (org.apache.struts2.views.jsp.ui.FormTag) _005fjspx_005ftagPool_005fs_005fform_005faction.get(org.apache.struts2.views.jsp.ui.FormTag.class);
_jspx_th_s_005fform_005f0.setPageContext(_jspx_page_context);
_jspx_th_s_005fform_005f0.setParent(null);
// /index.jsp(19,8) name = action type = java.lang.String reqTime = false required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null
_jspx_th_s_005fform_005f0.setAction("login");
int _jspx_eval_s_005fform_005f0 = _jspx_th_s_005fform_005f0.doStartTag();
if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_s_005fform_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_s_005fform_005f0.doInitBody();
}
do {
out.write("\n");
out.write(" ");
if (_jspx_meth_s_005ftextfield_005f0(_jspx_th_s_005fform_005f0, _jspx_page_context))
return true;
out.write("\n");
out.write(" ");
if (_jspx_meth_s_005fsubmit_005f0(_jspx_th_s_005fform_005f0, _jspx_page_context))
return true;
out.write("\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_s_005fform_005f0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.popBody();
}
}
if (_jspx_th_s_005fform_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fs_005fform_005faction.reuse(_jspx_th_s_005fform_005f0);
return true;
}
_005fjspx_005ftagPool_005fs_005fform_005faction.reuse(_jspx_th_s_005fform_005f0);
return false;
}
private boolean _jspx_meth_s_005ftextfield_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fform_005f0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// s:textfield
org.apache.struts2.views.jsp.ui.TextFieldTag _jspx_th_s_005ftextfield_005f0 = (org.apache.struts2.views.jsp.ui.TextFieldTag) _005fjspx_005ftagPool_005fs_005ftextfield_005fname_005flabel_005fnobody.get(org.apache.struts2.views.jsp.ui.TextFieldTag.class);
_jspx_th_s_005ftextfield_005f0.setPageContext(_jspx_page_context);
_jspx_th_s_005ftextfield_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fform_005f0);
// /index.jsp(20,12) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null
_jspx_th_s_005ftextfield_005f0.setName("userName");
// /index.jsp(20,12) name = label type = java.lang.String reqTime = false required = false fragment = false deferredValue = false deferredMethod = false expectedTypeName = null methodSignature = null
_jspx_th_s_005ftextfield_005f0.setLabel("用户名");
int _jspx_eval_s_005ftextfield_005f0 = _jspx_th_s_005ftextfield_005f0.doStartTag();
if (_jspx_th_s_005ftextfield_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005fs_005ftextfield_005fname_005flabel_005fnob
没有合适的资源?快使用搜索试试~ 我知道了~
struts2的一个自定义拦截器小例子
共43个文件
xml:11个
jar:8个
class:7个
4星 · 超过85%的资源 需积分: 9 142 下载量 20 浏览量
2008-09-19
22:49:43
上传
评论 1
收藏 5.54MB RAR 举报
温馨提示
http://blog.csdn.net/zhiweiv/archive/2008/09/19/2954047.aspx
资源推荐
资源详情
资源评论
收起资源包目录
WebApplication1.rar (43个子文件)
WebApplication1
test
dist
WebApplication1.war 2.26MB
src
conf
MANIFEST.MF 25B
java
action
LoginAction.java 2KB
WelcomeAction.java 836B
interceptor
AuthenticationInterceptor.java 1KB
struts.xml 1KB
web
WEB-INF
web.xml 786B
index.jsp 733B
META-INF
context.xml 96B
welcome.jsp 511B
build
generated
src
org
apache
jsp
index_jsp.class.smap 133B
hello_jsp.class.smap 126B
hello_jsp.java 7KB
index_jsp.java 9KB
classes
org
apache
jsp
hello_jsp.class 6KB
index_jsp.class 7KB
web
WEB-INF
web.xml 786B
lib
struts2-core-2.1.2.jar 697KB
ognl-2.6.11.jar 164KB
commons-logging-1.0.4.jar 37KB
commons-fileupload-1.2.1.jar 56KB
struts-json-plugin-0.30.jar 43KB
struts2-dojo-plugin-2.1.2.jar 1.65MB
freemarker-2.3.12.jar 843KB
xwork-2.1.1.jar 510KB
classes
action
LoginAction.class 1KB
UtilAction.class 764B
HelloAction.class 446B
WelcomeAction.class 1KB
interceptor
AuthenticationInterceptor.class 997B
struts.xml 998B
index.jsp 733B
META-INF
context.xml 96B
MANIFEST.MF 25B
welcome.jsp 511B
build.xml 3KB
nbproject
build-impl.xml 46KB
private
private.xml 211B
private.properties 2KB
ant-deploy.xml 2KB
project.properties 3KB
project.xml 2KB
genfiles.properties 455B
共 43 条
- 1
资源评论
- wcp9262013-04-19运行不了。。。
- zhuangjt0012014-07-15不错 很好用的哦。
- lizhiyong20122013-07-10不错,很受用,谢谢
zhiweiv
- 粉丝: 15
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功