Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

action mapping problem

 
prasad ap
Greenhorn
Posts: 5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is my file structure

strutshibex:

src

webcontent:
index.jsp
input.jsp
WEB-INF:
struts-config.xml
web.xml
Filename: filestrutcture.bmp
Description:
File size: 301 Kbytes
[Download filestrutcture.bmp] Download Attachment
 
Varun Nambuthiri
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use code tags UseCodeTags .
 
prasad ap
Greenhorn
Posts: 5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic