PDA

View Full Version : Spring session form question


boriskin
Jan 25th, 2005, 03:14 PM
How do I access a session form "command" object through a traditional JSP scriplet? I tried session.getAttribute("command") but got an error.

erikw
Jan 25th, 2005, 05:13 PM
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