Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 1:12 PM, Anil <[EMAIL PROTECTED]> wrote: > Matt Raible raibledesigns.com> writes: > > > > > As far as drop-downs, I typically populate all (or most) of mine from a > > database at application startup using a ServletListener. I stuff these > > into the application scope as Lists of

Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
On Apr 8, 2005, at 2:12 PM, Anil wrote: Matt Raible raibledesigns.com> writes: As far as drop-downs, I typically populate all (or most) of mine from a database at application startup using a ServletListener. I stuff these into the application scope as Lists of LabelValue beans. Then I code up

Re: Meta Information in Action Form

2005-04-08 Thread Dave Newton
Craig McClanahan wrote: That being said, I have seen cases where the potential performance penalty is quite large (many seconds of database access), which will show up in one of your users waiting an abnormally long time for their response -- not something I would find very appealling. I don't l

Re: Meta Information in Action Form

2005-04-08 Thread Anil
Matt Raible raibledesigns.com> writes: > > As far as drop-downs, I typically populate all (or most) of mine from a > database at application startup using a ServletListener. I stuff these > into the application scope as Lists of LabelValue beans. Then I code > up a ReloadAction that can

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 12:39 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: > > >On Apr 8, 2005 11:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > > > > > >>I haven't done much (anything?) with servlet listeners--what's the > >>advantage to doing it this way as opposed to a servlet.i

Re: Meta Information in Action Form

2005-04-08 Thread Dave Newton
Craig McClanahan wrote: On Apr 8, 2005 11:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: I haven't done much (anything?) with servlet listeners--what's the advantage to doing it this way as opposed to a servlet.init that loads on app startup? Generally what we've done is to have a thread that che

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 12:15 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > > On Apr 8, 2005, at 1:00 PM, Christine Huang wrote: > > > On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: > >> > >> The servlet container is *not* required to leave your load-on-startup > >> servlet loaded for

Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
On Apr 8, 2005, at 1:00 PM, Christine Huang wrote: On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: The servlet container is *not* required to leave your load-on-startup servlet loaded for the entire duration of the webapp's lifetime (although, in practice, most containers do).

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
group.com/ > > > -Original Message- > From: Joe Germuska [mailto:[EMAIL PROTECTED] > Sent: Friday, April 08, 2005 2:35 PM > To: Struts Users Mailing List > Subject: Re: Meta Information in Action Form > > Matt's general approach is the one we use also,

Re: Meta Information in Action Form

2005-04-08 Thread Christine Huang
On Apr 8, 2005 1:40 PM, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > The servlet container is *not* required to leave your load-on-startup > servlet loaded for the entire duration of the webapp's lifetime > (although, in practice, most containers do). For example, the > container could unload

RE: Meta Information in Action Form

2005-04-08 Thread Jay Burgess
nt: Friday, April 08, 2005 2:35 PM To: Struts Users Mailing List Subject: Re: Meta Information in Action Form Matt's general approach is the one we use also, except instead of ServletListeners and the database, we use the DigestingPlugIn, which produces objects based on XML and can

Re: Meta Information in Action Form

2005-04-08 Thread Joe Germuska
Matt's general approach is the one we use also, except instead of ServletListeners and the database, we use the DigestingPlugIn, which produces objects based on XML and can put them in the application context. There's an example in the mailreader app which you should be able to just about cut-

Re: Meta Information in Action Form

2005-04-08 Thread Craig McClanahan
On Apr 8, 2005 11:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > Matt Raible wrote: > > > As far as drop-downs, I typically populate all (or most) of mine from > > a database at application startup using a ServletListener. I stuff > > these into the application scope as Lists of LabelValue bea

Re: Meta Information in Action Form

2005-04-08 Thread Dave Newton
Matt Raible wrote: As far as drop-downs, I typically populate all (or most) of mine from a database at application startup using a ServletListener. I stuff these into the application scope as Lists of LabelValue beans. Then I code up a ReloadAction that can call my Listener to reload them

Re: Meta Information in Action Form

2005-04-08 Thread Matt Raible
As far as drop-downs, I typically populate all (or most) of mine from a database at application startup using a ServletListener. I stuff these into the application scope as Lists of LabelValue beans. Then I code up a ReloadAction that can call my Listener to reload them all. I've found t

Re: Meta Information in Action Form

2005-04-08 Thread Christine Huang
If those drop-down values are not dynamic, I would use a application scope bean. If it is dynamic, like credit card profiles in a dropdown list for a particular user, I will declare it as ActionForm property. I would like to hear about other people's solution. Christine On Apr 8, 2005 12:18 P

Re: Meta Information in Action Form

2005-04-08 Thread Anil
Leon Rosenberg anotheria.net> writes: > > Sorry, but what exactly do you mean with meta information? > > Leon > > > -UrsprÃngliche Nachricht- > > Von: news [mailto:news sea.gmane.org] Im Auftrag von Anil > > Gesendet: Freitag, 8. April 2005 02:34 > > An: user struts.apache.org > >

Re: Meta Information in Action Form

2005-04-07 Thread Leon Rosenberg
Sorry, but what exactly do you mean with meta information? Leon > -Ursprüngliche Nachricht- > Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Anil > Gesendet: Freitag, 8. April 2005 02:34 > An: user@struts.apache.org > Betreff: Meta Information in Action Form > > > Hi All, > > Is i

Re: Meta Information in Action Form

2005-04-07 Thread Leon Rosenberg
Sorry, but what exactly do you mean with meta information? Leon > -Ursprüngliche Nachricht- > Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Anil > Gesendet: Freitag, 8. April 2005 02:34 > An: user@struts.apache.org > Betreff: Meta Information in Action Form > > > Hi All, > > Is i