If you do not know what the field names are before displaying the page, how
could you possibly validate them?

Are you storing the validation in the database as well?
If so, it sounds like you need to develop your own custom validation.

Sorry I can't help you further.  FWIW....good luck.

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -----Original Message-----
> From: Arik Levin ( Tikal ) [mailto:arikl@;businesslayers.co.il]
> Sent: Monday, October 28, 2002 11:02 AM
> To: 'Struts Users Mailing List'
> Subject: RE: how can I do it? using validation without formset.
>
>
> Because my fields are coming from the DB and I don't know the
> field's names,
> yet.
> I'm using struts syntax for example <html:text
> property="value(fieldname)"/>
>
> So in that way I can't use the descriptor (validation.xml).
> How can I do it thru the API? Or is there any other suggestions?
>
> -----Original Message-----
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Monday, October 28, 2002 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: how can I do it? using validation without formset.
>
> Why do you want to do this?  I'm not sure that you can because
> the validator
>
> needs to know what fields to validate.
>
> David
>
>
>
>
>
>
> >From: "Arik  Levin ( Tikal )" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: how can I do it? using validation without formset.
> >Date: Mon, 28 Oct 2002 13:44:24 +0200
> >
> >
> >I want to use validation at struts 1.1b2, with no validation.xml
> >descriptor.
> >
> >
> >Can anyone have an example for this one?
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to