解决方案 »
- response.getWriter().print("brandName:商品1") 乱码
- myeclipse8.6安装jbpm4.4问题
- Connection is read-only. Queries leading to data modification are not allowed
- <x:out select=""/> 的问题,帮忙看看,谢谢!等。。。。。。
- 急啊,在线等好心人!怎么在eclipse里打开tomcat!
- poi异常
- 求助 请教 socket挂死
- jar包中的MANIFEST.MF文件中的Classpath的指定有什么作用呢,和一个java工程的.classpath文件中的classpathentry有什么不同呢谢谢,在线
- 有谁用过struts的分模块开发?
- 50分,哪位大哥提供一个db2 v8.1的JDBC驱动,万分感谢
- GoogleMap v3 API详解
- hibernate+mysql操作
<constant name="struts.devMode" value="ture" /> <package name="relationship" namespace="/relationship" extends="struts-relationship">
<action name="/friend" >
<result>/Friend.jsp</result>
</action>
</package>
<package name="relationship1" namespace="/" extends="struts-relationship1">
<action name="index" >
<result>/index.jsp</result>
</action>
</package> 好好检查一下,可能就是缺点东西,例如“/”
<result>/Friend.jsp</result>
</action>
这里面配置的不对,你可以看看视频附的源码,看下差在哪http://localhost:8080/BlloseWorld
这个没有错,因为
<package name="relationship1" namespace="/" extends="struts-relationship1">
<action name="index" >
<result>/index.jsp</result>
</action>配置的没问题。
1、输入http://localhost:8080/BlloseWorld/的时候是可以正常访问index.jsp
这个其实找的是<welcome-file>index.jsp</welcome-file>中的jsp,没有执行struts。xml里东西
2、http://localhost:8080/BlloseWorld/relationship/friend
<action name="/friend" >里面不应该加“/”,而且应该是你没有配置对应friend的class类,错误说的很明白,There is no Action mapped for action name friend。