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
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
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-
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
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
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]
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
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
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
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
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
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
12 matches
Mail list logo