I have to apologize for not explaining myself more clearly. What I am
doing is building a form at run time. All the field information,
including fields type is pulled from the database, so based on that
value I wanted to display input type text, or input type hidden or
whatever. It seem to me though that I can only store a property name
in the Map that backs the action form. Dont see where to store the
type to retrieve it at the page. Any ideas how to do it?

Thanks
Oleg


On Fri, 31 Dec 2004 11:59:59 -0600, Eddie Bush <[EMAIL PROTECTED]> wrote:
> You can't tell, based off the form, which fields are hidden or
> visible.  This is something you have to know and hard-code into the
> page.  So far as being different types, ... well, that's the same
> thing :-)
> 
> EVERYthing is carried around in a form as text because if you were to
> have a form with non-text fields and the user submitted something that
> failed to convert on assignment you would lose data.  A better
> practice is to capture values as text, perform validation on the text,
> and assign that to some POJO bean that has the proper types.
> BeanUtils can be indespensible for doing this!
> 
> Good Luck,
> 
> Eddie
> 
> On Fri, 31 Dec 2004 05:10:37 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> > Do you have a specific problem?  I cannot tell what the worry is.
> >
> > Jack
> >
> >
> > On Fri, 31 Dec 2004 00:47:57 -0800, Oleg <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > Map-backed forms work great if all the fields are same input type, for
> > > example text. What if its mixed: text field, check box, input hidden.
> > > How would you distinguish whats where?
> > >
> > > Thanks
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > ------------------------------
> >
> > "You can lead a horse to water but you cannot make it float on its back."
> >
> > ~Dakota Jack~
> >
> > "You can't wake a person who is pretending to be asleep."
> >
> > ~Native Proverb~
> >
> > "Each man is good in His sight. It is not necessary for eagles to be crows."
> >
> > ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> >
> > -----------------------------------------------
> >
> > "This message may contain confidential and/or privileged information.
> > If you are not the addressee or authorized to receive this for the
> > addressee, you must not use, copy, disclose, or take any action based
> > on this message or any information herein. If you have received this
> > message in error, please advise the sender immediately by reply e-mail
> > and delete this message. Thank you for your cooperation."
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -- 
> Eddie Bush
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to