My form bean having the property "userid=442" is in the request from an action class(UserAction.java). I want to use this property's value for the value of the hidden form field in the jsp page(UserForm.jsp). I am using <html:hidden name="userForm" property="userId" value="userId"/> but I am not getting the userid=442 in my action class(UserAction.java) when I submit this jsp form. Any fix?? Guess my usage of html:hidden is incorrect...
Assuming you have an <html:form> tag, you do not require the name attribute. You would only need name if you do not have an associated <html:form>. If that's the case, the only rquired attribute is property. The value attribute should not be required. Try this:
I'm still in control here. LOOK at this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop