Hello,
I am trying myself in struts2.
ready some tutorials and samples I tried to build my own small web app.
I am using
Java 1.5 and
Tomcat 7.
I have an index.jsp where the user has to insert his name, a postal code an a location name.
After that he has to click on submit.
As described in my struts.xml the submit request is mapped to a java class (implementing action interface). In the execude method I am doing some hibernate stuff (saving a new person with name and postal code and savin a new location with postal code and location name).
After that I return the constanc SUCCESS which is equal to "success" (still tried this hard coded).
Everythings works fine until now. the execute method is called, my hibernate stuff works fine and it goes to the result line. when making another step over the following error page appears:
When changing the mapped class name in my struts.xml clicking on submit button fails. This is in my mind a validation that the
struts xml is basically found.
This is my struts.xml:
my index.jsp form header:
my web.xml:
in eclipse the default output folder of my src-folder is default:
ThirdWebApp/build/classes
deployment configuration (default):
"/src" --> "WEB-INF/classes"
"/WebContent" --> "/"
and finally my folder structure using eclipse:
*see attachment
Thank you very much for any help!