• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts 2 stop action

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic