struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: Please help decide a religious discussion
Date Fri, 27 Sep 2002 14:17:29 GMT
The Action class...but the action should be asking a helper object for a 
list of whatever goes in your drop down.  It shouldn't know about the 
database directly.  So you might have in your action.execute():

List list = StateHelper.getStateList();
// put list in your form

Dave


>From: Stephen.Chambers@transplace.com
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Subject: Please help decide a religious discussion
>Date: Fri, 27 Sep 2002 09:13:35 -0500
>
>
>All,
>
>My team is currently at loggerheads about the correct place to put the
>database calls that are prepopulating our drop downs. We can not decide if
>they should be in the ActionForm or in the Action class. We are trying to
>stick them in the validate method in the ActionForm to make sure they are
>always called in instances where the form does not get to the action class
>(i.e. validation fails). But is this the correct way? I am thinking this is
>nothing new. What is the correct way to initialize drop downs?
>And then what about closing the database connection?
>
>I would much appreciate any help. It would make our Friday alot smoother.
>
>Steve
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message