struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanmay Udgiri" <>
Subject Re: displaying a field as bold
Date Tue, 23 May 2006 11:06:23 GMT
let me put the code which we are using

<field property="changedAddressLine2"
                  <arg0 key=""/>
                       <var-value>^[0-9, a-zA-Z]*$</var-value>




here the field is mandatory if the region is EMEA/LAC,and optional for any
other region.
And even if it is optional We have to still check if he enters correct data
for that field.

So in JSP based on these condition we are currently displaying like
<logic:equal region="EMEA"><b><html:text name="addres2"/></b>
<logic:notEqual region="EMEA"><html:text name="addres2"/>
We are not using property files bze the same field can be mandatory for same
region based on certain condition.

Thanks and Regards
Hanmayya Udgiri

On 5/23/06, I HARIKRISHNA <> wrote:
> What is the need for validation if the field is nonmandatory and if it  is
> required then how will you do in Struts>?>>???
> wrote:  Hi,
> The best way to display mandatory is give your mandatory text field a
> color or put (*).
> Yes you have struts implementation for both mandatory & non-mandatory
> fields.
> even validation.
> Cheers,
> Kind regards,
> Rakesh Bhat
> -----Original Message-----
> From: Hanmay Udgiri []
> Sent: Tuesday, May 23, 2006 3:35 PM
> To:
> Subject: displaying a field as bold
> Importance: Low
> Hi
> We have two requirements like this.
> 1.In my JSP page I have around 50 fields and these fields could be
> mandatory,optional or just plane read only fields based on some
> condition.
> Now the requirement is when the JSP is displayed,which way is good to
> display the field in bold if mandatory,non-bold if optional and just
> label
> if read only.
> Should we user any custom implementation for this or struts has any
> facilities for this.
> 2.Another is if the field is required,it should do a mandatory
> validation.
> And if optional,it should to a optional validation.
> In struts do have any implementation.
> I have around 50 field and having a indictor for each field will
> increase
> the
> form bean parameters.
> Thanks and Regards
> Hanmayya Udgiri
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> ---------------------------------
> Ring'em or ping'em. Make  PC-to-phone calls as low as 1ยข/min with Yahoo!
> Messenger with Voice.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message