I have a question. When the form submitted, the value of 'clientPageNumber' of 'pageInfo' of 'form' is still 0 instead of 5
during processing the action class on the server side.
How can I update the value of that?
The source is in the following:
jsp <bean:define id="formPageInfo" name="TestForm" property="pageInfo"/>
<!-- pageInfo is a property object of form -->
<input type="hidden" id="tablePageNumber" name="tablePageNumber" value="<bean:write name="formPageInfo" property="clientPageNumber"/>"/>
<!-- clientPageNumber is a int property of pageInfo object -->
Here the the pageInfo bean is defined as a session (or request?) attribute, where the HTML form is submitting a tablePageNumber property, which will become a request parameter.
What you can try to do in your action handler, is try to stuff the request paramter we are getting into the tablePageNumber property of the bean.
Error: Keyboard not attached. Press F1 to continue.