This forum is the best place to be if I have any doubts at all . Thanks for all the help till now .
I am working with Struts1.x and I seem to be having trouble in doing anything actually . I created this simple login page and form bean for that page . Then an action class to work on the page request .
Here is the code .
this is login.html
then here it the form bean LoginForm.java
then there is the web.xml ( which i think seems to be causing the problem )
If needed anything else please do tell me . Thank you
thanks for the reply . Since i am new to this Struts 1.x , I dont know how the mapping occurs but the basic flow that I want to follow is HTML -> Form Bean (Storing the HTML field data ) -> Action ( where the data from Form bean is taken) -> action forward -> result page .
And since the page is not doin anything I am wondering the problem maybe with the web.xml file .
Unless you have a good reason to learn Struts 1.x, like you are going to be maintaining an existing application, I recommend you learn Struts 2.x. Struts 1.x has some serious drawbacks that Struts 2.x addresses.
That said, you have to tell the form where to send the data. Look up the "action" attribute for the HTML form tag.
Thanks for the reply . Yes I do have to maintain an application which was implemented in Struts 1.x . And I did look up the "action" tag . But I could specify the action but that would lead the flow directly to the action whereas I need the data from the HTML form to stored in Form Bean first .