struts1 每次提交action中的form值都为null 30
这是form配置:<form-beanname="autoQueryCheck"type="com.yinbo.jhtpay.web.forms.AutoQueryChe...
这是form配置:<form-bean name="autoQueryCheck" type="com.yinbo.jhtpay.web.forms.AutoQueryCheckForm"></form-bean>
下面是action配置:
<!-- 查证 -->
<action path="/merCheckOut" scope="request"
attribute="autoQueryCheckForm"
name="autoQueryCheckForm"
type="org.springframework.web.struts.DelegatingActionProxy">
</action>
这是action:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
AutoQueryCheckForm checkForm=(AutoQueryCheckForm)form;
为啥每次提交过来checkForm 都为null 展开
下面是action配置:
<!-- 查证 -->
<action path="/merCheckOut" scope="request"
attribute="autoQueryCheckForm"
name="autoQueryCheckForm"
type="org.springframework.web.struts.DelegatingActionProxy">
</action>
这是action:
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
AutoQueryCheckForm checkForm=(AutoQueryCheckForm)form;
为啥每次提交过来checkForm 都为null 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询