This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Action Class Not Called

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic