Re: Populating a select box from a database

2005-09-26 Thread Dave Newton
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

Re: Populating a select box from a database

2005-09-25 Thread vijay
--- 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

Re: Populating a select box from a database

2005-09-24 Thread Laurie Harper
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

Re: Populating a select box from a database

2005-09-24 Thread Leon Rosenberg
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:

RE: Populating a select box from a database

2005-09-23 Thread Rob Turknett
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

Re: Populating a select box from a database

2005-09-23 Thread Frank W. Zammetti
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

Re: Populating a select box from a database

2005-09-23 Thread Laurie Harper
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

Re: Populating a select box from a database

2005-09-23 Thread Wendy Smoak
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