struts标签不显示
2016-04-10 09:44
621 查看
这是报错
原因在于Struts标签仅用于当请求通过servlet选择器,因为初始化struts标签需要servlet选择器
我把这些代码写在form表单提交后的一个网页中就可以用了
看来我必须用html标签了
严重: Servlet.service() for servlet [jsp] in context with path [/2_用户登录界面] threw exception [An exception occurred processing JSP page /register.jsp at line 2121 2118: 2119: <body data-genuitec="wc1-4-79"> 2120: This is my JSP page. <br data-genuitec="wc1-4-80"> 2121: <s:form action="" method="post"> 2122: <s:textfield name="username" label="用户名"></s:textfield> 2123: <s:password name="password" label="密码"></s:password> 2124: <s:textfield name="age" label="年龄"></s:textfield> Stacktrace:] with root cause The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this 4000 tag. - [unknown location]
原因在于Struts标签仅用于当请求通过servlet选择器,因为初始化struts标签需要servlet选择器
我把这些代码写在form表单提交后的一个网页中就可以用了
看来我必须用html标签了
相关文章推荐
- jdk1.6容器-LinkedList源码
- Myeclipse的破解步骤
- myeclipse 自动添加头时间,作者,文件注释
- SpringMVC运行原理
- SpringMVC运行原理
- 20145109 《Java实验报告1》
- java容器源码
- java20天
- 《JAVA与模式》之模板方法模式
- java函数加载顺序
- Java 中获取资源(文件)的路径问题总结
- java中的自动类型转换和强制类型转换
- java中的变量使用规则。
- Struts2文件下载
- Spring3 报org.aopalliance.intercept.MethodInterceptor问题解决方法
- javaWeb学习记录:c3p0数据库连接池;DBUtils工具
- Java--各种有趣的图案输出
- Java注释和javadoc工具
- Android中的依赖问题(五种依赖、eclipse、AS、添加第三方库、jar)
- Java split用法