File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Strange behaviour on form submission Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange behaviour on form submission" Watch "Strange behaviour on form submission" New topic

Strange behaviour on form submission

rahul V kumar
Ranch Hand

Joined: May 20, 2003
Posts: 82
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.
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
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

Joined: Feb 24, 2004
Posts: 155
Hi All,
Let me put the same problem in more detail:

I have three pieces :

when I point to : http://localhost:9080/EA/ , 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

I agree. Here's the link:
subject: Strange behaviour on form submission
It's not a secret anymore!