此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【gpm】截止到2008-06-23 18:20:09的历史汇总数据(不包括此帖):
发帖数:0 发帖分:0
结贴数:0 结贴分:0
未结数:0 未结分:0
结贴率:-------------------结分率:-------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
楼主【gpm】截止到2008-06-23 18:20:09的历史汇总数据(不包括此帖):
发帖数:0 发帖分:0
结贴数:0 结贴分:0
未结数:0 未结分:0
结贴率:-------------------结分率:-------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
解决方案 »
- 不同权限进入页面的问题
- 弱弱的问个Hibernate的问题
- 再次请教Hibernate的关联问题,急啊!!
- 哪位好心人愿提供一本中文版j2ee API啊
- 有研究、了解OpenOffice的,请进!
- Struts的bean:write 如何输出request中的数组
- 关于struts标签的问题,急
- [高分提问]问题1:使用JBOSS,如何部署一个Webservices的服务端;[高分提问]问题2:现有wsdl文件,使用JBOSS,如何部署一个Webservices的
- 急求::Tomcat5下配置数据库连接池问题??? thanks!!!!!!!!!!!
- struts的<logic:iterate id="employee" name="employees">找不着employees的问题
- 这样的分段数据该怎样写到数据库中呢?
- 寻找深圳科技园附近的兼职人员
试试吧,我记得不用加的,不过看错误提示似乎要加上
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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"> <filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ActionContextCleanUp
</filter-class>
</filter> <filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter> <filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener> <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
他说:在你的配置文件中的 ''命名空间中找不到login这个action。
你调用的是/MyTest/login 根据struts2的定义命名空间应该为/MyTest。所以根据描述,请根据红色部分修改,加入命名空间。<package name="MyTest" extends="struts-default" namespace="/MyTest">
<action name="login" class="loginAction">
<result name="success">/ok.jsp </result>
<result name="login">/login.jsp </result>
</action>
</package>
你把struts.xml放在什么位置了,这个应该是放在classpath下面,也就是你的src中,或者看看名字写错了没有
是package名字,不是命名空间,楼主并没有定义命名空间,还有提示/MyTest/login中的MyTest应该是项目名,不是楼上所说的命名空间
像你这样定义的话就变成/MyTest/MyTest/login了