解决struts2初学者配置问题 我和你碰到了同样的问题,不过在web.xml中我配置的url我就是写的/*没有任何问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我写/*的时候就报错,只要改为*.action就正确 <form action="login.action" method=post>这里的action="qs/login.action"因为<package name="qs" namespace="/qs" extends="struts-default">要加命名空间namespace="/qs" 你也没有问题啊,struts2是挺好的. 怀疑你的web.xml有问题。 <?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>bm</display-name> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>/login/login.jsp</welcome-file> </welcome-file-list></web-app>这个是我可以用的。试试吧再不行, 打包发上来看看 你们一个说这样,一个说那样,我都不知道是怎么样了,我也是遇到同样问题,搞了好几天了,把学struts的兴趣都快搞没了.现在还没搞出来,上面的两种web.xml我都用过了,还是不行. 要导入commons-logging-1.0.4.jar freeer-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.11.1.jar xwork-2.0.4.jar五个包 看看是不是导错了 关于JXL方面的求助。。。 tomcat的启动问题求助? 我现在已经没头绪了啊,无奈啊!!!!!!! 请教该用哪种J2EE技术框架 hibernate中如何添加自增字段? 请问在serversocket中建立了一个连接,怎么终止它 怎样用CVS进行版本控制?装好了,连不上.cvs [login aborted] d:\NARoot no such repositery 大虾急救 谁可以推荐一个好的J2EE,EJB方面的书 struts2实现文件下载的请求能异步提交吗? 各位都使什么笔记本?商务本适合开发么? struts2怎样设置不处理异常
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>bm</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <welcome-file-list>
<welcome-file>/login/login.jsp</welcome-file>
</welcome-file-list></web-app>
这个是我可以用的。试试吧再不行, 打包发上来看看