On Tue, 9 Apr 2002, Tim Moore wrote:

> Date: Tue, 9 Apr 2002 11:56:22 -0400
> From: Tim Moore <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: RE: Is FormBean mandatory???
>
> > -----Original Message-----
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 09, 2002 11:38 AM
> > To: Struts Developers List
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Is FormBean mandatory???
> >
> > On Tue, 9 Apr 2002, Konstantin Priblouda wrote:
> >
> > > Date: Tue, 9 Apr 2002 08:15:03 -0700 (PDT)
> > > From: Konstantin Priblouda <[EMAIL PROTECTED]>
> > > Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> > > To: Struts Developers List <[EMAIL PROTECTED]>,
> > >      [EMAIL PROTECTED]
> > > Subject: RE: Is FormBean mandatory???
> > >
> > > --- Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > Web forms can only handle Strings and booleans - so
> > > > if your value
> > > > objects have Dates or Integers, get ready for some
> > > > fun!
> > >
> > > Integers are completely OK, floats depend on sanity of
> > > web users. ( imagine some bank clerk who is used
> > > to enter dots to separate 000... )
> > >
> >
> > Using int or Integer properties in a form bean misses the
> > whole reason for its existence -- to reproduce the user's
> > input in case they made a mistake.
> >
>
> It's still nice that you can use integer properties, though, for things
> like select fields and radio buttons...anything that doesn't allow
> free-form text input.
>

How do *you* know that your Struts client is actually a browser (and
therefore using the SELECT box to control the input value that is sent)?
It could be a program that is submitting HTTP requests to trigger
transactions in your webapp.  :-)

I take your point that this is a valid assumption in many controlled
environments, but certainly not universally.

> --
> Tim Moore / Blackboard Inc. / Software Engineer
> 1899 L Street, NW / 5th Floor / Washington, DC 20036
> Phone 202-463-4860 ext. 258 / Fax 202-463-4863
>

Craig


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

Reply via email to