Re: [Struts2] session variable empty in the JSP

2012-02-28 Thread Samuel Robert
I have tried but it did not help. I have tried also by defining the action as a bean and populating the "context" bean in the Spring configuration file (with the Struts Spring plugin). But the same error comes. I guess I will pursue with my solution of redirecting to another action on the first ca

Re: [Struts2] session variable empty in the JSP

2012-02-27 Thread Gabriel Belingueres
You are lacking the in the bean definition. See the following link: http://static.springsource.org/spring/docs/3.0.7.RELEASE/spring-framework-reference/html/beans.html#beans-factory-scopes-other-injection HTH 2012/2/27 Samuel Robert : > I am using Spring: > ** > > In the action: > *@Autowired >

Re: [Struts2] session variable empty in the JSP

2012-02-27 Thread Samuel Robert
I am using Spring: ** In the action: *@Autowired private SessionBean context;* I can manipulate the context object in the action, fill it with a list of profiles. In the JSP, tags like the following fail (the first time only): The application uses Spring Security and Tiles with the struts-til

Re: [Struts2] session variable empty in the JSP

2012-02-27 Thread Gabriel Belingueres
Post the code in which you actually set the attribute in the session scope. 2012/2/27 Samuel Robert : > Hi, > > I faced few days ago a problem with the session variable in the JSP. I > posted the problem here but did not get any solution: > http://stackoverflow.com/questions/9381991/session-variab

[Struts2] session variable empty in the JSP

2012-02-27 Thread Samuel Robert
Hi, I faced few days ago a problem with the session variable in the JSP. I posted the problem here but did not get any solution: http://stackoverflow.com/questions/9381991/session-variable-empty-in-the-jsp-on-first-access-in-a-struts2-spring-applicatio Perhaps some of you have an idea. Basically