Hi again,

I tried to implement SessionAware but with no luck. 

I have this call in the jsp page:

<a href="/WebAds/IrValidarSemana.do">

My investigation are:

Using Firefox: 

  a) I access with localhost: all ok
  b) I access with name or ip: all ok

Using IE :

  a) I access with localhost: all ok

  b) I access with name or ip: fail
      In this case, it works if I define one of these 2 things instead of <a 
href="/WebAds/IrValidarSemana.do">:
        
1) <a href="/WebAds/IrValidarSemana.do;jsessionid=<%=session.getId() %>">
         2) <s:form action="IrValidarSemana"><s:submit/></s:form>


Is that normal? Must I add the jsession info in all the links?

Regards,
Paco



> Date: Wed, 12 Nov 2008 10:28:23 -0600
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: Important ActionContext.getContext().getSession() error
> 
> Having Map<String, String> does not affect whether the session is null or
> not, it is just for the compiler to add type safety to the Map, and by the
> way, the Session Map is String --> Serializable not String --> String.
> 
> You should probably implement the SessionAware (
> http://struts.apache.org/2.0.11/struts2-core/apidocs/org/apache/struts2/interceptor/SessionAware.html)
> interface in your action to gain access to the session instead of using
> ActionContext.
> 
> Regards,
> 
>   Carlos Luis Zúñiga Sibaja
> __________________________
>   [EMAIL PROTECTED]
> 
>   divide et impera...
> 
> 
> On Wed, Nov 12, 2008 at 10:17 AM, Felipe Lorenz <[EMAIL PROTECTED]>wrote:
> 
> > Hi Francisco...
> >
> > I use it in many diferrents browser, and never got this error... but i
> > use the following  sentence:
> >
> > Map session = ActionContext.get......
> >
> > I dont put this <String, String>!!!
> >
> > On Wed, Nov 12, 2008 at 1:53 PM, Francisco Exposito
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I have the next sentence in order to get info from session:
> > >
> > > Map<String,String> session = ActionContext.getContext().getSession();
> > >
> > > And then i put or get info.
> > >
> > > It works properly in firefox local and remote and in ie local. But if I
> > try to execute it in a remote ie, I get that session is null.
> > >
> > > Any help please?
> > >
> > > Regards,
> > > Paco
> > >
> > > _________________________________________________________________
> > > Diviértete y aprende con el juego de palabras del Abecedario
> > > http://www.vivelive.com/abecedario/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

_________________________________________________________________
Diviértete y aprende con el juego de palabras del Abecedario
http://www.vivelive.com/abecedario/

Reply via email to