This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts action class

 
Matt Sloan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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 ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
Shankar Narayana
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic