Hi,

It is always advisable to do most of the business processing on the server
side. So inside the bean you can extract the values you want to populate
from
the database in form of String[] object.You can this String[] object inside
the
JSP. Populate your dropdown with that String [] object. Here your bean just
acts as value object from which you extract the values and can't modify.

-ShriKant

A mailing list about Java Server Pages specification and reference wrote:

> From: Clayton Nash <[EMAIL PROTECTED]>@JAVA.SUN.COM on 12/26/2001
02:01
>       PM GMT
>
> Please respond to A mailing list about Java Server Pages specification
and
>       reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Re: Flash & Jsp
>
> The way I've done this in the past is to have the  flash open a URL on
the
> site which returns the results you want in the drop down  as variables
> eg
> var1=5&var2=6..
>
> and then use the variables in the flash file to  construct the drop down.
>
> Clayton
> ----- Original Message -----
> From:  Peter Dolukhanov
> To: [EMAIL PROTECTED]
> Sent: Wednesday, December 26, 2001 1:29  AM
> Subject: Flash & Jsp
>
> Season Greetings to everyone on this  list!!
>
> Quick question, I am developing a flash site  which contains a dropdown
box
> object, I need that dropdown box populated by  JSP, I can obviously
prepare
> it in any way that is needed. In HTML/JSP that  just involved connecting
to
> a database and perfomring a while loop using  a ResultSet object and a
next
> () method, however I can prepare a String []  object etc as needed..
>
> Can anyone help out?
>
> Cheers
>
> Peter  Dolukhanov

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to