Announcement Announcement Module
Collapse
No announcement yet.
Regarding session attribute in FormAction Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Regarding session attribute in FormAction

    Hi,

    i am using combination of springwebmvc and springwebflow in my project.
    In my login controller which is SimpleFormController, i put user model in session for future use (after successfully logged in). Then there is a Order FormAction (flow to place order) which is FormAction. I need usermodel from the session in that formaction.
    How can i get session attribute in FormAction.(I have RequestConext)?

    Regards,

    shahzad

  • #2
    solved

    ((ServletEvent)context.getSourceEvent()).getReques t().getSession().getAttribute("userModel");

    Regards,
    shahzad

    Comment


    • #3
      You must be using PR5. It's simpler and more obvious in 1.0 (and documented in the reference manual ;-))

      Comment

      Working...
      X