vijay wrote:
yes that's what is suggested in the Newbie FAQ. But
you can work with a single Action. Just add a
attribute called ?action=populate, compare this in the
Action class and take an appropriate action.
*shudder*
Why not just populate the action form any time you're going to the for
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Yes, that's the 'standard' pattern.
yes that's what is suggested in the Newbie FAQ. But
you can work with a single Action. Just add a
attribute called ?action=populate, compare this in the
Action class and take an appropriate action.
regards,
vija
m: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, September 23, 2005 8:45 PM
To: user@struts.apache.org
Subject: Re: Populating a select box from a database
Rob Turknett wrote:
I want to populate a select element with items from a database. The
items
can be retrieved by
the select box, that is executed
> prior to the ActionForm?
>
> Rob
>
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
> > Sent: Friday, September 23, 2005 8:45 PM
> > To: user@struts.apache.org
> > Subject:
t: Friday, September 23, 2005 8:45 PM
> To: user@struts.apache.org
> Subject: Re: Populating a select box from a database
>
> Rob Turknett wrote:
> > I want to populate a select element with items from a database. The
> items
> > can be retrieved by making calls to
Another suggestion is to use the DependencyFilter in Java Web Parts:
http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/DependencyFilter.html
(I seem to be offering this suggestion a lot lately!)
With the DependencyFilter, you could define in an XML file what is
essentially a "ma
Rob Turknett wrote:
I want to populate a select element with items from a database. The items
can be retrieved by making calls to an API that retrieves data from the
database. These API methods may throw exceptions if the database is
inaccessible, or if the user is not logged in. The items only n
From: "Rob Turknett" <[EMAIL PROTECTED]>
I want to populate a select element with items from a database. The items
can be retrieved by making calls to an API that retrieves data from the
database. These API methods may throw exceptions if the database is
inaccessible, or if the user is not logge
8 matches
Mail list logo