| 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: 676
|
|
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: 676
|
|
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?
|
 |
 |
|
|
subject: struts 2 stop action
|
|
|