Results 1 to 1 of 1
Thread: struts fielderror
- 02-22-2010, 08:39 AM #1
Member
- Join Date
- Sep 2009
- Posts
- 6
- Rep Power
- 0
struts fielderror
Hi All,
I am trying to display error messages on top of that filed only using <s:fielderror> tag in struts 2 but not able to do it. i have tried the following way :
<tr style="height: 15px;">
<td colspan="2"> </td>
<td width="260">
<s:fielderror name="account.name" cssClass="error">
</s:fielderror>
</td>
<td> </td>
</tr>
<tr >
<td>Name</td>
<td valign="top"><span style="color: rgb(232, 19, 19);">*</span></td>
<td colspan="2" width="260">
<s:textfield name="account.name" id="text" label="Name" />
</td>
</tr>
Please tell me where i am doing mistake as right now it display error message on top of every filed
Similar Threads
-
decorator.jsp problem building Struts Menu in JSP when Struts action is used
By dkirvan in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-29-2010, 05:33 AM -
struts
By prakashkadakol in forum New To JavaReplies: 1Last Post: 01-19-2010, 07:36 PM -
Struts 1 vs Struts 2
By priyanka.dandekar in forum Web FrameworksReplies: 1Last Post: 10-06-2008, 09:31 PM -
Struts
By ucan_aps in forum Web FrameworksReplies: 0Last Post: 09-26-2008, 05:03 PM -
help with JSF, MVC, Struts
By christina in forum New To JavaReplies: 1Last Post: 08-06-2007, 09:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks