Good Morning,
I have a question concerning session forms,
I wish to use a POJO that is stored in my session across multiple forms in my application (one form backing object, multiple forms).
I can't seem to control what the name of session attribute used to store the form backing object in the session is.
It isn't for a wizard, the form backing object is just a list of settings I want the user to carry with them across the application.
Now when the form-backing object gets stored in the session I get a log message that reads:Code:<bean id="mainPageController" class="com.concilerpress.webapp.action.MCPMainPageController"> <property name="commandClass" value="com.concilerpress.webapp.action.commandobject.AppState"/> <property name="commandName" value="appState"/> <property name="successView" value="redirect:/main_page.html" /> <property name="cancelView" value="forward:/" /> <property name="formView" value="index"/> <!-- Specified as a sessionForm --> <property name="sessionForm" value="true" /> </bean>
Therefore, it would seem to me that this means my form-backing object is stored in the session attribute: com.concilerpress.webapp.action.MainPageController .FORM.appStateCode:Setting form session attribute [com.concilerpress.webapp.action.MainPageController.FORM.appState] to: com.concilerpress.action.commandobject.AppState@4c03d
I can't seem to find a setter for setting the name of the session attribute which stores the form; Now given this fact, how can I retrieve the same form backing object from the session in a different part of the application?
Thank you,
Andrew J. Leer


Reply With Quote