struts中怎么使用隐藏表单
<html:form action="/login">
<input type="hidden" name="formId" value="TICKET-01">
</html:form>
action里面这样写为什么读不出来
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
LoginForm loginForm = (LoginForm) form
String formId = request.getParameter("formId");
System.out.println("*************");
System.out.println(formId);
System.out.println("*************");
return mapping.findForward("success");
}
必须要用struts框架,难道他不支持hidden吗
------解决方案--------------------可以取到,你再仔细检查你的代码