aspose file tools*
The moose likes Struts and the fly likes Action Class called twice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Class called twice" Watch "Action Class called twice" New topic
Author

Action Class called twice

Lavanya Mothilal
Ranch Hand

Joined: Dec 27, 2007
Posts: 30
Hi,

I am using an image with an <a> tag (like the one below) to submit a form with the help of javascript.



After the form submits using the "deletedetails" method, some times the action is called twice which leads to some undesired results (like deleting the same record twice from a database). As I mentioned, this behaviour is not consistent and at times the action is called only once as desired.

Anyone know the reason behind this ?


Thanks,<br />Lavanya
Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

Duplicate post.
Please don't make multiple posts with the same query.


SCJP 5.0 and now fighting with ExtJS
Lavanya Mothilal
Ranch Hand

Joined: Dec 27, 2007
Posts: 30
ya sorry it was done by mistake.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action Class called twice
 
Similar Threads
Methods executing twice
Cant get DispatchAction to work
Struts Action called twice
Problem with duplicated execution of action class
Help needed with struts