Some weird things are happening here : I have a form, with a hidden field and a button. This button is placed on a page with some user information. I want to pass that users ID to the subsequent action, to retrieve his data and display it on the other page. In another part of my webapp, I'm using the same mechanism and it works like a charm. But, for some reason, it doesn't work anymore.
This is my struts-config: <action path="/UpdateUserPortalInit" type="be.fedict.usermgmt.citizenadmin.action.UpdateUserPortalInit" name="UpdateUserPortalForm" validate="false" scope="request" > <forward name="UpdateUserPage" path="/dynamic/pages/UpdateUserPage.jsp" redirect="false" /> </action> My form: <form action="UpdateUserPortalInit.do" style="display: inline;"> <input type="hidden" name="userId" value="Testing" /> <input type="submit" value="Next" /> </form> Action-code: String userId = (String) req.getAttribute("userId"); userId is always null and there is no attribute in the request scope, called userId. The weird thing is that the same mechanism on another page works like a charm. Does anybody know what I'm doing wrong? Tia This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.