I'm having problems accessing the value that I stored in a form, using a session scope.
In my ActionForm struts.form.DataForm, I have defined a
String field "date" with getters and setters.
In my
JSP, I set the field and in the MappingDispatchAction class, I print out the value to make sure it was set to whatever the user wanted.
Then I forward to a page with code:
<html:form action="/Blah">
...
<jsp:useBean id="theForm" type="struts.form.DataForm/>
...
</html:form>
And in the struts-config.xml I have set the formbean for that page, also using scope=session
Within the <html:form> I also call <% theForm.getDate(); %> but it doesn't return the value that was assigned previously. Can anyone see what I am doing wrong (or trying to do wrong?)
Thanks