Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Re: [S2] Refactoring Action classes

Milan Milanovic

2008-08-06

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi Nils-Helge,

yes, I only use session attribute in my action class which implements
SessionAware interface.

--
Regards, Milan



Nils-Helge Garli wrote:
>
> And you're sure it's a session attribute and not a request attribute?
>
> Nils-H
>
> On Wed, Aug 6, 2008 at 6:49 PM, Milan Milanovic
> <milanmilanovich@(protected):
>>
>> Dear Dave,
>>
>> I don't know really, I don't use HTTPS, my cookies are enabled, my
>> redirect
>> action deleted my session variables, when I changed this action to
>> standard
>> action it worked, NO other part of the code is changed.
>>
>> --
>> Milan
>>
>>
>> newton.dave wrote:
>>>
>>> --- On Wed, 8/6/08, Milan Milanovic wrote:
>>>> newton.dave wrote:
>>>>> --- On Wed, 8/6/08, Milan Milanovic wrote:
>>>>>> No, my cookies are enabled all the time. But if my
>>>>>> JSessionID is not automatically appended to the new
>>>>>> location by container/struts2 in case of redirect action, why ?
>>>>>
>>>>> Probably because cookies are enabled all the time.
>>>>
>>>> I don't understand, but enabled cookies is defualt
>>>> behavior, isn't it ?
>>>
>>> Passing the session ID in the link is the workaround for someone not
>>> having their cookies enabled. It'll also happen on the first page hit
>>> because it can't tell if cookies are enabled.
>>>
>>> I think most users have cookies enabled, although since it's a browser
>>> issue I'd hesitate to call almost anything "default".
>>>
>>> Another reason you could lose session is moving between HTTP and HTTPS;
>>> some servers will use a different session. I'm assuming they all have a
>>> way to share the session, though.
>>>
>>> Dave
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-S2--Refactoring-Action-classes-tp18813229p18855185.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.