jsp:
------------------------
<html:form action="TestTagsAction">
<html:text property="attr_dd" />
<html:submit property="submit"/>
// 我在这里如何能得到attr_dd 的值?用java代码。
</html:form>action:
-----------------------
public ActionForward perform(ActionMapping ..){
TestForm f =(TestForm)form;
f.setAttr_dd("good");
return mapping.findForward("tags");
}
------------------------
<html:form action="TestTagsAction">
<html:text property="attr_dd" />
<html:submit property="submit"/>
// 我在这里如何能得到attr_dd 的值?用java代码。
</html:form>action:
-----------------------
public ActionForward perform(ActionMapping ..){
TestForm f =(TestForm)form;
f.setAttr_dd("good");
return mapping.findForward("tags");
}
<html:submit property="submit"/>
<%
String outt= (String)RequestUtils.lookup(pageContext,"str", "request") ;//这么用对吗?为什么总是取到null? out.print(outt);
%>
</html:form>