• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple execution in the Action class

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

My form is one page with a save button.
when the user clicks save the Form gets into action and if valid --> move to the Action, after the action, a message should appear on the same page "Success" that's it.

for some reason, when the user click save (and the form is ok) the Action is committed multiple time (until I get: javax.servlet.ServletException: Servlet execution threw an exception)

Anyway, I wonder what can cause this error?

the struts-config looks like this:


and the Action (just as a test)


I suspect that this occurs because "saveOK" ref to the same action path (maybe?!)
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, probably it was tooooo late.
anyway, i got it, it's the forward name, shouldn't be the .do! should have been the input as in:

<forward name="saveOK" path="/pages.travelers/display/displayAccount.jsp"/>

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic