Struts HTML taglib reference
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:
<html:hidden property="userId"/>