aspose file tools*
The moose likes Struts and the fly likes Action Class Not Called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Class Not Called" Watch "Action Class Not Called" New topic
Author

Action Class Not Called

Joohi Arora
Greenhorn

Joined: May 25, 2006
Posts: 4
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

Joined: May 25, 2006
Posts: 4
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
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
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.


    Merrill
    Consultant, Sima Solutions
    Joohi Arora
    Greenhorn

    Joined: May 25, 2006
    Posts: 4
    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.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Action Class Not Called