• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts action class

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I changed something by accident and i can't figure out what I did. My jsp calls the struts form, but the action class never gets called...

here is a clip from my struts-config as it stands now...



This was working last night and I have spent all day trying to figure out what I changed this morning. Anyone have any suggestions? I know this is kinda broad, but any pointers are greatly appreciated!
[ September 02, 2004: Message edited by: Matt Sloan ]
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens in the browser when the page is submitted?
 
Matt Sloan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would probably help if I give a description of the problem huh?

I have a jsp/form that accepts user input(a date selection, and a couple of checkboxes). When the user is done, they click on the save button and their choices get stored in the database. However, when I click save, the browser calls the .do and then says 'done'. The records don't get saved. Any break points in the Action class are never tripped (and yes I am sure I am running in de-bugging mode). I do know that my Form class is called.

Like I said, this was working just fine last night when I went home. Then I had to go and change something this morning...
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Try to put the System.out.println statements at the first line in execute method and go on testing until u find a point where the code is not executed. This should really help you. This happens to me also, but this is best way i solve the problems.

Regards,
Shankar
[ September 02, 2004: Message edited by: Shankar Narayana ]
 
Matt Sloan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, I did that and in addition to adding the System.out.println as the first line of the execute statement, I put a break point. Nothing gets printed out, and the breakpoint never gets tripped. This is why I am thinking that my action class never gets called.
 
Shankar Narayana
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post your jsp page, and cud you please edit your first post to fit into the screen width.


Thanks,
Shankar
 
Matt Sloan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shankar here is my jsp:


also, here is hte formbean element from my struts config:


Thanks for your help!

Matt
 
Matt Sloan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alright PAINFULL lesson learned.

In my action class, I imported the company specific ActionForm class, not the struts ActionForm class. Even though the company ActionForm class extends the struts ActionForm class, it didn't work.

Thanks for your help!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic