This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts 2 stop action 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 "struts 2 stop action" Watch "struts 2 stop action" New topic
Author

struts 2 stop action

mario roma
Greenhorn

Joined: Jan 27, 2009
Posts: 3
Hi I'm a new member and i have a big problem.I use struts 2 ,i want stop execution of action somehow out of action,or set a time to live of action.sorry for my bad english.thanks advance
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi,

First of all we can not get what you want to ask ?

Your question is not clear so can you please post it proper ...??


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
mario roma
Greenhorn

Joined: Jan 27, 2009
Posts: 3
ok...I have 2 action, this action work togheter,1 of this action can go in loop,now i want stop execution of this action,or if not is possible i want set a time of life of action.
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684


Hi,

First of all can you please tell me how we can use two action at a time simultaneously ???

And if you want to know your execution time then put

long start = System.currentTimeMillis(); At the start of your method loop.

And Put After your loop this line

long stop = System.currentTimeMillis();

then calculate total execution time using

totalTime = (Double)((Long)(stop-start)).doubleValue()/60000;


mario roma
Greenhorn

Joined: Jan 27, 2009
Posts: 3
it is possible...I have set a interceptor "execAndWait" ,I call action1 ,and in waitpage call action2...now anction1 and action2 work togheter...but i want stop action1 when it is call action2 how i can?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 stop action
 
Similar Threads
what is the different between struts classis and struts action framework ?
redirecting to dynamic URL
which book to refer for struts
How to Download XML file from database?
struts2 field validator type boolean and all possible field types.