以前做过,现在不是很记得了,你可以这样试试:一
<html:errors/>
<html:form action="/login.do">
     请输入用户名:<html:text property="userName"><bean:write 
"message"/></html:text><br/>
     <html:submit property="submit" value="提交"></html:submit>
     </html:form>二
<html:errors/>
<html:form action="/login.do">
     请输入用户名:<html:text property="userName"><html:text><bean:write 
"message"/><br/>
     <html:submit property="submit" value="提交"></html:submit>
     </html:form>三
  </html:messages>
     <html:form action="/login.do">
<html:messages id="message">
       请输入用户名:<html:text property="userName"></html:text><bean:write name="message"/><br/>
     <html:submit property="submit" value="提交"></html:submit>
     </html:form>