Announcement Announcement Module
Collapse
No announcement yet.
Spring session form question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring session form question

    How do I access a session form "command" object through a traditional JSP scriplet? I tried session.getAttribute("command") but got an error.

  • #2
    Is there a specific reason why you want to read it from the session, since the same object is bound in the request as well.

    However, if you really want to read from the session, please have a look at:

    AbstractFormController.getFormSessionAttributeName ();

    It states the following:
    return isSessionForm() ? getClass().getName() + ".FORM." + getCommandName() : null;

    However, I think if you explain what you want or need to do, that there might be a nicer approach.

    Regards,
    Erik

    Comment

    Working...
    X