Re: struts 2 session question

2013-05-08 Thread Dave Newton
Personally, I'd use SessionAware and reduce coupling even further. The docs for both methods should answer this question fairly completely. The session is exposed as a map in S2, and as a servlet spec artifact in S1. Dave On Wed, May 8, 2013 at 12:15 PM, john lee wrote: > > for stuts 1, to

struts 2 session question

2013-05-08 Thread john lee
  for stuts 1, to get session, via the following     session=request.getSession();   session.setAttribute("PERSON", person);    /* person is object name */   for struts 2, to get session, via the following     Map session=ActionContext.getContext().getSession();   session.put("PERSO

Re: [S2] session question

2007-08-17 Thread Eugen Stoianovici
Laurie Harper wrote: Eugen Stoianovici wrote: how do i get a handle to Session / Request from an action implementing import com.opensymphony.xwork2.Preparable;? http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how-can-we-access-the-

Re: [S2] session question

2007-08-17 Thread Laurie Harper
Eugen Stoianovici wrote: how do i get a handle to Session / Request from an action implementing import com.opensymphony.xwork2.Preparable;? http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html

Re: [S2] session question

2007-08-17 Thread nuwan chandrasoma
Hi, http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletresponse.html Thanks, Nuwan On 8/17/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > how do i get a handle to Session / Request from an action i

[S2] session question

2007-08-16 Thread Eugen Stoianovici
how do i get a handle to Session / Request from an action implementing import com.opensymphony.xwork2.Preparable;? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Session Question

2005-09-28 Thread Rahul Akolkar
On 9/28/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Troy Bull" <[EMAIL PROTECTED]> > > > > <%= session.getAttribute("variable") %> > > > > So the c:out tag isn't working, any ideas why that would be? > > Try just: > > > It will check page, request, session, and application scope

Re: Session Question

2005-09-28 Thread Wendy Smoak
From: "Troy Bull" <[EMAIL PROTECTED]> I have an action that puts a string in to session named variable. Then returns success which loads a jsp page. On that page I have the following 2 lines. I thought it would print out the message 2 times but it does not it only prints it once. The second

Re: Session Question

2005-09-28 Thread Troy Bull
Thanks a ton. Sometimes I miss the dumbest stuff... Ronald Holshausen wrote: change it to On 28/09/05, Troy Bull <[EMAIL PROTECTED]> wrote: Hi all I have an action that puts a string in to session named variable. Then returns success which loads a jsp page. On that page I have the fol

Re: Session Question

2005-09-28 Thread Ronald Holshausen
change it to On 28/09/05, Troy Bull <[EMAIL PROTECTED]> wrote: > Hi all > > I have an action that puts a string in to session named variable. Then > returns success which loads a jsp page. On that page I have the > following 2 lines. I thought it would print out the message 2 times but > it do

Session Question

2005-09-28 Thread Troy Bull
Hi all I have an action that puts a string in to session named variable. Then returns success which loads a jsp page. On that page I have the following 2 lines. I thought it would print out the message 2 times but it does not it only prints it once. The second line is the one that prints

Struts modules and project layout. Session question too.

2005-04-20 Thread Dahnke, Eric \(Company IT\)
Hello, We're looking at unifying three existing standalone struts applications into one core struts application with two modules. We'd like the modules to remain as autonomous as possible so that we could replace or make one of them stand on it's own again in the future. My question is how to la