Hi,
I am using frames in my application. The left frame has the navigation hyperlinks and the right frame as the form fields like text boxes.
Now I am trying to implement refresh functionality, so that after entering data on page1.jsp and if I click the Page1 hyperlink, the page1.jsp should be submitted and the data on it should be read and stored into the sessison.
I am having problem with form submit. I am doing like this:
<html:link action="/Page1.do?actionType=refresh" onKlick="javascript: document.myForm.submit()" target="dataEntryPage"> Personal</html:link>
and I have a ActionForward method refresh() in the Page1Action.java class which reads the data from the form
Line of code from Page1Action.java
Page1Bean pa = new Page1Bean();
pa.Name = (String) form.get("Name");
System.out.println("Name: " + pa.Name);
When I do that, its just printing Name:
And no data what ever I entered on the form text field.
Structs Config Action Mapping for this is:
<action path="/Page1Link" name="Page1Form" type="org.tiaa.tda.action.PersonalInfoAction"
parameter="actionType" scope="request" >
<forward name="refresh" path="/jsp/Personal.jsp" redirect="true" />
</action>
I hope the form is not submitting.
Can anyone suggest me how should I submit a form in this case.
Thanks in Advance,
Naveen