Re: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
> > 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 >

RE: The Same Action With and Without a Form

2004-06-16 Thread David Friedman
(.) 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

Re: The Same Action With and Without a Form

2004-06-16 Thread Chris Cranford
ot;); > > > > But in either case it would yield the same result > > :-) > > Chris > > > > - Original Message - > > From: "Chris Cranford" > > <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" > &

Re: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
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

Re: The Same Action With and Without a Form

2004-06-16 Thread Chris Cranford
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

Re: The Same Action With and Without a Form

2004-06-16 Thread Chris Cranford
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="

RE: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
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

RE: The Same Action With and Without a Form

2004-06-16 Thread CRANFORD, CHRIS
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