This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Synchronous action call in struts... 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 "Synchronous action call in struts..." Watch "Synchronous action call in struts..." New topic

Synchronous action call in struts...

Satyajit Bhadange
Ranch Hand

Joined: May 13, 2010
Posts: 104

I m developing a module ..where two actions of struts are involved of different classes. On main jsp i m calling fisrt action and after that the another action...but on server side two actions are called simultaneously..Is there any way i can handle the situation so that only after completion of one action other will be called

Problems And Solutions - Algorithms
pete stein

Joined: Feb 23, 2007
Posts: 1561
Duplicate thread deleted. Please let's stick with one thread on this topic.
Rob Spoor

Joined: Oct 27, 2005
Posts: 20193

And I'll move it to our Struts forum.

How To Ask Questions How To Answer Questions
Ankit Garg

Joined: Aug 03, 2008
Posts: 9453

How are you actually calling these actions in your JSP page?? Is it possible to make the 2nd request from the JSP only after the 1st request is complete or do you have to handle it on the server side??

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Prakash Mani - Attur
Ranch Hand

Joined: Oct 08, 2009
Posts: 100
send the request to 1st action class method, then forward the request to another action class's method... am i right? i mean did i understood you question properly?
but on server side two actions are called simultaneously

i do not know how its happening...
I agree. Here's the link:
subject: Synchronous action call in struts...
It's not a secret anymore!