java - Struts:404 Page not found Error -


i trying build struts application basic functionalists. java servlet class myaction returns success. have compiled file , placed .class file in classes folder of project.

my struts config xml follows:

<struts-config> <action-mappings>     <action path="/view" type="myaction" validate="false">             <forward name="success" path="/first.jsp" />     </action>     <action path="/view" forward="/view.jsp"/> </action-mappings> </struts-config> 

i have form on view.jsp has action path first.jsp

        <form action="first">         enter name :         <input type="text" name="name"/>         <input type="submit" value="enter"/>     </form> 

but when run code in tomcat server , navigate view.do working fine. , when press submit button of form, page not getting redirected first.jsp. instead of first.do,the browser url navigating to: **http://localhost:8080/myproj/first?name=asdf**.

i trying debug past 2 days, no improvement. appreciated.

404 common error occurred when client able communicate server, server not find requested.

here url, trying invoke seems invalid. action path url path access page. , when click on submit on "first" jsp page, points /first action path in struts-config.xml

please check whether have deployed , make necessary configuration changes.

it works, if rest of configuration correct.

http://localhost:8080/myproj/view.do 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -