Announcement Announcement Module
No announcement yet.
probleme with PortletSession and spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • probleme with PortletSession and spring

    Hi, i'am developping Portlet application, and i have one probleme, to store and retrieve bean (Spring Bean) in PortletSession.
    snipet code :
    inside first Controller i do :
    request.getPortletSession(true).setAttribute("myBe an",myBean) ;
    and inside another to retrieve the same bean i do :
    MyBeanClass aux = (MyBeanClass)request.getPortletSession(true).getAt tribute("myBean") ;
    bat this don't work, always i've aux = null.
    when i bind simple pojo (not bean spring) to the PortletSession it work.
    I don't Know how we use ctoryBean.
    think you for your suggestions.

  • #2
    Hmm. Are you able to put any objects in and out of the session? I don't see in this context how the Spring bean is any different than any other object.