• 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

does a new action context created for every new action in struts2

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


my queries are:-

1)in struts2, does every action object has its own corresponding ActionContext and Value stack (VS)?

I mean ... for every new request a new action object is created.Does this mean every time a new action object is created, a new actioncontext and valuestack also get created?

2)consider this scenario:-

Action1------1st req------->view.jsp------2nd req--------->action2

so when request comes for action1 a new object of action1 and corresponding Actioncontext and Valuestack will get created.

From view.jsp (upon clicking hyperlink) an new request goes for action2.

Does this mean that previous ActionContext and VS(related to action1) gets destroyed and a new ActionContext and VS( for action2) get created?

3)Suppose i store something in ActionContext(of action1) in view.jsp and then click on hyperlink for action2 (from view.jsp), will that data along with the ActionContext(of action1) gets lost.

Thanks...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic