Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange behaviour on form submission

 
rahul V kumar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this strange behaviour when submitting a form.
I see that my action class is getting called twice i.e. my request is getting processed twice when i hit the submit button on a form.
Any idea whats happening and how could i resolve this issue.
thanks
 
poornima balagopal
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Can you please post your jsp part where you are giving your formAction and submit part along with the struts-configuration mapping for that particular action . With the question you have posted nothign is clear
so please do post the code part also
 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Let me put the same problem in more detail:


I have three pieces :

EmploymentHistoryAction.java
EmploymentHistoryForm.java
EmploymentHistory.jsp


when I point to : http://localhost:9080/EA/EmploymentHistory.do , it goes into perform() method ,
Now when I submit this page it goes into perform method twice !!!
And this behaviour is leading me in hell ...

NOTE: i read somewhere that the good technique is to use two action for one JSP . one for prefilling and other one for submitting...

Can anybody throw some light on this issue ?

All replies are appreciated ...thank you

-Anand.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic