>
> Chris
>
> - Original Message -
> From: "Caroline Jen" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, June 16, 2004 11:36 PM
> Subject: Re: The Same Action With and Without a Form
>
(.)
when it should have been BeanUtils.getProperty()
Regards,
David
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:37 PM
To: Struts Users Mailing List
Subject: Re: The Same Action With and Without a Form
I am confused.
First, the
ot;);
> >
> > But in either case it would yield the same result
> > :-)
> > Chris
> >
> > - Original Message -
> > From: "Chris Cranford"
> > <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List"
> &
sort");
> String order = BeanUtils.getPropety(form,
> "order");
>
> But in either case it would yield the same result
> :-)
> Chris
>
> - Original Message -
> From: "Chris Cranford"
> <[EMAIL PROTECTED]>
> To: "Struts Us
anford" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 7:25 PM
Subject: Re: The Same Action With and Without a Form
> Hmm, checkin' something here :-)
>
> I defined a form just like the following for
ine Jen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 5:58 PM
Subject: RE: The Same Action With and Without a Form
> The property of the 'initial' attribute inside the
> tag (i.e. initial="
The property of the 'initial' attribute inside the
tag (i.e. initial="postDate")
does not seem to become the default value. The query
method (with sort and order among the parameters) that
retrieve articles from the database got the
NullPointerException.
I know the query method works well becaus
Define your form in struts-config.xml like:
.. Other properties here
Then define your action mapping to use this formbean. When your form posts,
it will assume the default values for sort/order if they not present in the
request. If they're present in the HttpRequest object, then the
8 matches
Mail list logo