新手求助:spring+struts+hibernate程序错误 没看出有错误<html:form action="/add.do">试试吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 type="org.springframework.web.struts.DelegatingActionProxy" The requested resource (Servlet action is not available) is not available没找到action<html:form action="/add.do"> struts-config里的action的type应该是org.springframework.web.struts.DelegatingActionProxy The requested resource (Servlet action is not available) is not available 没找到action <html:form action="add"> 应该是这样 想学spring+struts2+hibern,该怎么入门啊?我刚把applet学的可以上手。 <html:form action="/add.do"> 我也支持 <html:form action="/add.do"> com.sshdemo.struts.action.AddAction这个路径文件名准确么?还有就是这个<html:form action="/add.do"> 如果ssh架构struts的Action由spring控制转向的话structs配置文件<action-mappings > <action attribute="addForm" input="/index.jsp" name="addForm" path="/add" scope="request" type="com.sshdemo.struts.action.AddAction"> <forward name="ok" path="/ok.jsp" /> <forward name="fail" path="/index.jsp" /> </action> </action-mappings> 中的type应该是 org.springframework.web.struts.DelegatingActionProxy在spring相应的action代理的type上是com.sshdemo.struts.action.AddAction 如果ssh架构struts的Action由spring控制转向的话structs配置文件 中的type应该是 org.springframework.web.struts.DelegatingActionProxy 在spring相应的action代理的type上是com.sshdemo.struts.action.AddAction然后那个<html:form action="/add.do"> 里面的.do不要的, action的type改为type="org.springframework.web.struts.DelegatingActionProxy" <action-mappings > <action attribute="addForm" input="/index.jsp" name="addForm" path="/add" scope="request" type="org.springframework.web.struts.DelegatingActionProxy"> <forward name="ok" path="/ok.jsp" /> <forward name="fail" path="/index.jsp" /> </action> </action-mappings>还有你的web.xml中是这么配置的<context-param> <param-name>contextConfigLocation </param-name> <param-value>/WEB-INF/applications-service.xml </param-value> </context-param> 你的spring配置文件不是叫这么名字吧!! <servlet> <servlet-name>SpringContextServlet </servlet-name> <servlet-class>org.springframework.web.context.ContextLoaderServlet </servlet-class> <load-on-startup>1 </load-on-startup> </servlet> 和<listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> 配置是不是有些问题呀,好像重复了吧!! action="***",/add跟/add.do以及add.do 有那些区别 好像/add跟add.do都行 <html:form action="<%=request.getContextPath()%>/add.action"> ACTION里填/ADD 和 ADD.DO都对,/ADD.DO貌似是错误的 type="com.sshdemo.struts.action.AddAction"> 这句肯定是错的,我只知道这个,但可能有N个错误 tomcat6.0启动报错 JAVA框架 请教一个关于jsp的编码问题 jsp页面都同样的错误……………… 请问如何设置不使用weblogic的Security? JBPM数据库同步 在ASP中怎么调用Axis的web serivces 这里的super();是什么意思? 请教IIS+resin,配置成功后jsp可以解析,但servlet找不到路径! weblogic/version错误! 一个方向的问题 hibernate-middlegen + mysql 生成不了关系
没找到action<html:form action="/add.do">
没找到action <html:form action="add"> 应该是这样
我也支持
这个路径文件名准确么?
还有就是这个
<html:form action="/add.do">
如果ssh架构struts的Action由spring控制转向的话structs配置文件
<action-mappings >
<action
attribute="addForm"
input="/index.jsp"
name="addForm"
path="/add"
scope="request"
type="com.sshdemo.struts.action.AddAction">
<forward name="ok" path="/ok.jsp" />
<forward name="fail" path="/index.jsp" />
</action>
</action-mappings>
中的type应该是 org.springframework.web.struts.DelegatingActionProxy
在spring相应的action代理的type上是com.sshdemo.struts.action.AddAction
在spring相应的action代理的type上是com.sshdemo.struts.action.AddAction然后那个<html:form action="/add.do"> 里面的.do不要的,
type="org.springframework.web.struts.DelegatingActionProxy"
<action
attribute="addForm"
input="/index.jsp"
name="addForm"
path="/add"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="ok" path="/ok.jsp" />
<forward name="fail" path="/index.jsp" />
</action>
</action-mappings>
还有你的web.xml中是这么配置的
<context-param>
<param-name>contextConfigLocation </param-name>
<param-value>/WEB-INF/applications-service.xml </param-value>
</context-param>
你的spring配置文件不是叫这么名字吧!!
<servlet>
<servlet-name>SpringContextServlet </servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet </servlet-class>
<load-on-startup>1 </load-on-startup>
</servlet>
和
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
配置是不是有些问题呀,好像重复了吧!!