I'm trying to create a dynamic web project with struts2. Below are the pages I've used:
The project struture is given below.
When I run index,jsp, the page gets displayed properly, but after hitting the submit button, I get an error : 'HTTP Status 404 - There is no Action mapped for namespace [/] and action name [LoginForm] associated with context path' and the url displayed is : http://localhost/SampleProject/LoginForm
Just curious to know, did you refer any articles or created the project on your own?
And fyi, Struts 2 doesnt need ActionForm, ActionForward, ActionMapping, etc.. And the execute() method in Action can be a plain method with no arguments and returning a string. I guess may be you are mixing Struts 1 and Struts 2 here.