Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2 stop action

 
mario roma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ...??
 
mario roma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic