Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action Class Not Called

 
Joohi Arora
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    Joohi Arora
    Greenhorn
    Posts: 4
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Merrill,

    I did it your way(by making a new project and copy pasting all files into the new project) and my problem is solved. Thanks a ton for your guidance.

    Regards,
    Joohi.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic