You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Puneet Lakhina <pu...@gmail.com> on 2006/08/07 10:58:31 UTC

html:erros in jsp

Hi,
I want to display a border around by text fields when a validation error
occurs. Can someone suggest how i could do this??
is there a way i could probably use <logic:present> tag in case an error
existed for that particular property, so that I can use two text fields and
display the bordered one in case an error occurred.

But my solution will mean two html:text tags for every mandatory field, is
there a way to reduce the redundancy?

-- 
Puneet

Re: html:erros in jsp

Posted by Thomas Joseph <th...@kottsoftware.com>.
You can define the border for the text box in a style class and use errorStyle. This will reduce redundancy

http://struts.apache.org/1.2.9/userGuide/struts-html.html#text

Thanks and Regards,
Thomas Joseph 

Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India 
www.kottsoftware.com 

--------------------------------------------------------------------------------

This email (including any attachments) is subject to copyright, the information in it is confidential, and it is legally privileged. Use of this email or of any information in it other than by the addressee is unauthorized and unlawful. If you are not the intended recipient of the mail, kindly intimate the author of the mail and delete the same. 

--------------------------------------------------------------------------------

It doesn't matter how you were, but rather how you are that decides your future. A right attitude will get you to Success. 
  ----- Original Message ----- 
  From: Puneet Lakhina 
  To: Struts Users Mailing List 
  Sent: Monday, August 07, 2006 2:28 PM
  Subject: html:erros in jsp


  Hi,
  I want to display a border around by text fields when a validation error
  occurs. Can someone suggest how i could do this??
  is there a way i could probably use <logic:present> tag in case an error
  existed for that particular property, so that I can use two text fields and
  display the bordered one in case an error occurred.

  But my solution will mean two html:text tags for every mandatory field, is
  there a way to reduce the redundancy?

  -- 
  Puneet