Be careful about putting database access code right in your action. This
would not constitute a proper design of an application. If you are new to
struts and are in the process of learning, then you should get in the habit
of doing things right from the get go.

A more correct approach is to have your action call a business delegate
object which will then make calls to your data store.


-----Original Message-----
From: Eric C. Hein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 1:46 PM
To: Struts Users Mailing List
Subject: Re: Where should database select go for select dropdown


In yourAction class.

----- Original Message -----
From: "Huw Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 10:22 AM
Subject: Where should database select go for select dropdown


> Sorry if this is trivial - but I'm new to the framework and I'm finding
the
> documentation confusing.
> Just want to create an html select object with options set to the contents
> of a database table - i.e. visualise
> a  lookup table. So when the form is first displayed the dropdown appears
> with data from a database table.
> I'm confused where the database access should go - in the JSP or the
> FormBean. Is there an example which
> someone could point me to
>
> Thanks
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to