I am new to struts. I developed a basic struts application (using a jsp having 4 fields, a form bean and a form action class) to validate the fields and populate database. Yesterday while debugging some problem occured into my WSAD due to which I had to install it again. Now when I try to run my application, the action class is not being called, the form bean is called(It extends ValidatorForm). Please help me what all should I check, what could be missing.
Thanks, Joohi.
Joohi Arora
Greenhorn
Joined: May 25, 2006
Posts: 4
posted
0
I am sorry, instead of "form bean and form action" i must say, "action and form action classes". Out of these two , form action class is being called but the control never goes to Action class and it displays done. There is no error. Please suggest what could be the problem.
Thanks Joohi
Joohi Arora
Greenhorn
Joined: May 25, 2006
Posts: 4
posted
0
I am sorry, instead of "form bean and form action" i must say, "action and form action classes". Out of these two , form action class is being called but the control never goes to Action class and it displays done. There is no error. Please suggest what could be the problem.
Thanks Joohi
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
posted
0
Joohi,
I'm not able to pinpoint what is wrong from your description. However, I've worked with WSAD for quite a few years and know that strange things can happen. If this project was working before you had to reload, and you believe it's not working now because of this WSAD problem, here's what I'd recommend:
Create a new Struts Web Project
Create each of the Java classes using the WSAD wizard.
Cut and paste the code from the old classes into the new.
Cut and paste the configuration information from the old struts-config.xml file into the new one
Then test and see if this fixes the problem. Let me know how it goes.