<html:form action="checkXmlUser.do" >
<bean:message key="login.jsp.name" />:<html:text property="userName"/><html:errors property="userName"/>
<html:errors property="userNameError"/><br>
<bean:message key="login.jsp.pass"/>:<html:text property="passWord"/><html:errors property="passWord"/>
<html:errors property="userPassError"/><br>
<html:submit value="登录"/><html:cancel/>
  </html:form>

解决方案 »

  1.   

    styleClass="myClass"
    .myClass{
     color:red
    }
      

  2.   

    在html的标签中增加styleId的属性,然后在js中就可以随时引用该元素了。
    这是直接的。统一处理的话,加上span,div等层析。
    例如:
    <span class=""><html:radio ....></span>
    CSS的基本知识应该没问题吧。
      

  3.   

    <html:form action="checkUser.do">
      <table class="tableStyle" cellSpacing=0 cellPadding=4 rules=all border=1 align="center">
    <tr>
    <td width="30%"><bean:message key="login.jsp.name" /></td>
    <td><html:text property="userName"/>
        <html:errors property="userName"/>
        <html:errors property="userNameError"/></td></tr>     
    <tr>
    <td><bean:message key="login.jsp.pass"/></td>
    <td><html:text property="passWord"/>
    <html:errors property="passWord" />
    <html:errors property="userPassError"/></td></tr>
    <tr>
    <td><html:submit value="登录" styleClass="buttonStyle" /></td>
    <td><html:reset value="重写" styleClass="buttonStyle" /></td></tr>
      </table>
      </html:form>
    谢谢各位,我改成这么写了