webwork:Disabling the response for futher output,

异常:

 Disabling the response for futher output
2009-05-15 13:49:56,609 DEBUG [org.apache.catalina.core.ApplicationDispatcher] -  The Response is vehiculed using a wrapper: com.opensymphony.module.sitemesh.filter.PageResponseWrapper
2009-05-15 13:50:07,093 WARN [com.opensymphony.xwork.DefaultActionInvocation] - No result defined for action com.ytx.ztc.action.BetbrainAdminHalfFullAction and result input

 

检查半天,才发现原来在页面录入时,输入的类型与model中类型不匹配或者是不能自动转换类型所致。

 

本人的录入页面部分代码:

 

<th height="28" align="right"> 公司Id: </th>
            <td height="28" align="left"><label>
                <input id="companyId" type="text" name="companyId"
	value="<ww:property value='model.companyId'/>"  
		msg="[公司ID] 必须是数值!" 

                                 min="1"                             
                            max="9"size="10" />
                </label>
       </td>

此 companyId  所对应的model 为:

    

    

 private Integer companyId;

 

至此,才发现每次前台页面输入的companyId 不是数值型时,即发生此异常。

但是为什么不抛出其他的具体的异常呢?

是拦截器封装了?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值