(
在Action類中增加了addMessages
便於處理ActionMessages和ActionErrors
I
HttpServletRequest request
ActionMessages messages)
II
HttpServletRequest request
ActionErrors errors)
III
IV
下面的代碼片斷是關於ActionMessages的(ActionErrors的例子類似):
ActionMessages messages=getMessages(request);
//xx
ActionMessage msg=new ActionMessage(
messages
addMessages(request
//在
//因為
//具體可參見Struts
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28544.html