aspose file tools*
The moose likes Struts and the fly likes action mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "action mapping problem" Watch "action mapping problem" New topic
Author

action mapping problem

prasad ap
Greenhorn

Joined: Dec 10, 2012
Posts: 5

i am integrating struts hibernate
i got this error

HTTP Status 404 - /StrutsHibEx1/input.do
--------------------------------------------------------------------------------
type Status report
message /StrutsHibEx1/input.do
description The requested resource (/StrutsHibEx1/input.do) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18

My struts-config.xml
--------------------------------
<action-mappings>
<action path="/input" forward="/input.jsp"/>
</action-mappings>


<plug-in className="com.durga.sh.common.plugin.HibernatePlugin" >
<set-property property="path" value="/hibernate.cfg.xml" />
</plug-in>

web.xml
--------------------
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

</web-app>


index.jsp
---------------------
<jsp:forward page="input.do"/>

----------------------------

please help me .....
-------------------
prasad
prasad ap
Greenhorn

Joined: Dec 10, 2012
Posts: 5

it is my file structure

strutshibex:

src

webcontent:
index.jsp
input.jsp
WEB-INF:
struts-config.xml
web.xml


[Download filestrutcture.bmp] Download

Varun Nambuthiri
Ranch Hand

Joined: Sep 20, 2010
Posts: 76
Please use code tags UseCodeTags .


All's well that Debugs well .
prasad ap
Greenhorn

Joined: Dec 10, 2012
Posts: 5

thank you varun for your response. actually it is not action mapping problem.

Actually when i restart eclipse indigo 3.7 version, without changing code, file structure, library jars, it is showing different exceptions, like ClassNotFoundException ActionServlet, ClassNotFoundException HibernatePlugin, org.mapping.exception, once it will execute after inserting some values to database again its going for repeat exception, each one happens every time when i go for run on server. i do not know why elclipse is behaving like that....

at last yesterday night its executed without change in code, and no exception

thanks
-------------
prasad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: action mapping problem
 
Similar Threads
struts 1.beginner, code not working
SwitchAction in struts?????
Can i have multiple struts-config files in struts1.1
java.lang.NullPointerException: Module 'null' not found
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope