Here is the jsp:

 

<%@ taglib uri="webwork" prefix="webwork" %>

<h1>Login</h1>

 

<webwork:if test="hasErrors()">

  ERROR:<br />

  <font color="red">

    <webwork:iterator value="actionErrors">

      <webwork:property/><br />

    </webwork:iterator>

  </font>

</webwork:if>

 

<form name="loginForm" action="" class=SpellE>Login.action" method="POST">

User name:

<input name="username" /><br />

Password:

<input name="password" /><br />

<input type="submit" value="Login" />

</form>

 

 

How can I put the field-level errors above the INPUT boxes?

 

Thanks.

 

 

 

 

Reply via email to