It is done by creating the javascript (as well as the html)
from the servlet call.
Calling the servlet only once, you will populate the first drop down list.
Then, by using the event onChange() in the select list
you call some Javascript code which has been produced by the servlet
and fills the other two lists according to the selection made by the first
list.
In this way you remain on the client and do not need to go back to the
server.
If you want the javascript code, please mail me.
Nick.
----- Original Message -----
From: Vikas Gupta <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 12, 2000 10:59 AM
Subject: dynamically changing lists
> Hi
> I have three drop down lists.Data in all three is coming from
> database.I want to change the content of two of the lists if first list is
> changed.Data in lists two and three depend on the data in list1.
> I donot want to call the servlet again.
> Any idea how to do it in an optimal way using javascript or any other
idea.
> Regards,
> Vikas.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html