关于struts1.x中的html:messages标签的使用
ActionMessages errors = new ActionMessages();
errors.add("userid_null",new ActionMessage("user.userid.null"));
errors.add("userpwd_null",new ActionMessage("user.userpwd.null"));
saveMessages(request, errors);
<html:messages id="e" property="userid_null" message="true">
<bean:write name="e" />
</html:messages>