Hi Let me explain in more details We have a field Social Security Number this field could be mandatory if the user enters US account number or optional if he enters a Canada account number. We are using same JSP. So instead of having logic tags in JSP,do we any generic framework where in JSP it can reduce the no of lines. The same applies for validation in validation.xml(We have required and requiredif in Struts. But here we need a condition for each field.And we have around 100 field and the same field can be mandatory or optional based on condition.If I have to use requiredif then I have to have 100 extra field saying the field in mandatory).Do we have any other type of implementation I guess I have explained it properly
Thanks and Regards Hanmayya Udgiri On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 3:35 PM To: user@struts.apache.org 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]