Rxyz
03-07-2006, 01:15 PM
<tr>
<td>
<fmt:message key="lbl.balance" bundle="${bundle}"/><fmt:message key="colon" bundle="${bundle}"/>
</td>
<td><fmt:message key="dollar" bundle="${bundle}"/></td>
<td>
<html:text name="Form1" property="balance" errorStyleClass="errormessage"/>
<span class="required">*</span>
</td>
<td><span class="errors"><html:errors property="balance"/></span></td>
</tr>
I am creating the JSP's. In it I am trying to place a label, $ sign followed by a textfield, and sometimes percentage symbol beside it, follwed by a required symbol(*) followed by a error message if any.
My question is I am trying to put all these is different columns in table row.
Is there a better way to do the same. when errors are there as it's placed in different column the row size are getting increased. visually I see each row is twice the row before when error message is displayed.
I tried to put use span to place error message after the required symbol in it's column. when did this the error message is displayed in the next line itself.
What is the better way to do this?
Thanks.
<td>
<fmt:message key="lbl.balance" bundle="${bundle}"/><fmt:message key="colon" bundle="${bundle}"/>
</td>
<td><fmt:message key="dollar" bundle="${bundle}"/></td>
<td>
<html:text name="Form1" property="balance" errorStyleClass="errormessage"/>
<span class="required">*</span>
</td>
<td><span class="errors"><html:errors property="balance"/></span></td>
</tr>
I am creating the JSP's. In it I am trying to place a label, $ sign followed by a textfield, and sometimes percentage symbol beside it, follwed by a required symbol(*) followed by a error message if any.
My question is I am trying to put all these is different columns in table row.
Is there a better way to do the same. when errors are there as it's placed in different column the row size are getting increased. visually I see each row is twice the row before when error message is displayed.
I tried to put use span to place error message after the required symbol in it's column. when did this the error message is displayed in the next line itself.
What is the better way to do this?
Thanks.