blog.TangGaowei.com

Struts 输出错误信息

作者 Neot 写于 2008-12-22  | 1,191 次浏览

使用 <html:errors /> 在 jsp 页面输出错误信息时无法判断 errors 是否存在。使用以下代码输出错误更加灵活:

 

<html:messages id=”error”>

<p class=”message”><bean:write name=”error”/></p>

</html:messages>

[ 标签: errors, struts ]
[ 固定链接:http://blog.tanggaowei.com/2008/12/struts.html ]

订阅

 

手机访问

http://blog.tanggaowei.com/wap/

Google