You need to create an applet, which will contain both pulldowns.
Upon selection of a different item in first pulldown, you will pass
value of selected item to the server (may be through RMI or
ClassLoader). Then on server-side another class may handle the
request and return you an array of values to fill the second
pulldown.
@:-)
> ----- Original Message -----
> From: Peter Pilgrim <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 21, 2000 4:39 AM
> Subject: JSP and Form Pulldown that depends on another Form Pulldown
>
>
> > Hello
> >
> > I have an architectural / design with Forms, JSP, and dependencies
between
> > HTML Form Elements.
> >
> > Can JSP help me with a spec rquirement?
> >
> > I have a HTML Screen with two pulldowns <select>...</select>
> > Let's call the first pulldown "country" and fill it with
> >
> > { united kindom, france }
> >
> > Let's call the second one "city" and fill with either
> >
> > `{ london, manchester, glasgow, cardiff, belfast }
> > or
> > `{ paris, nice, lyon, marseille, bordeaux, grenoble, st etienne }
> > or
> > whatever the selected item the first pulldown has.
> >
> > See the problem ? Second pulldown depends on the first.
> >
> > It is easy to write this as a static HTML web page if the data is static
> > and bind it with a little JavaScript.
> >
> > But what if the values for the HTML Option element all come from a
> database.
> > I think you write some sort of OptionPulldownBean. But how do get these
> > beans depended on one another?
> > How would you write this requirement in JSP ( and the MVC pattern
(sic) )?
> >
> > Any ideas appreciated.
> >
> > --
> > Peter Pilgrim
> > G.O.A.T
> > "The Greatest of All Time"
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets