my dog learned polymorphism*
The moose likes JSP and the fly likes Dynamic Changes in JSP - Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamic Changes in JSP - Urgent" Watch "Dynamic Changes in JSP - Urgent" New topic
Author

Dynamic Changes in JSP - Urgent

vivek makode
Greenhorn

Joined: Oct 01, 2001
Posts: 27
Hi all,
I am having 2 list boxes (using select tag of html)in my registration.jsp page.
one select tag : main account types
second select tag : sub types for each main account types.
first select tag is dynamically populated from the database. i have done it.
but when user selects the main account type from the first list box, the second list box should be automatically populated depending upon his selection in the first list box.
how can i do it efficiently?
i am trying with javascript but i am not fully successful.
please help
vivek
S Chandra Mohan
Ranch Hand

Joined: Oct 19, 2000
Posts: 75
hi vivek,
U can dynamically populate the second select tag
depending upon the first in script itself.
The idea is...create a hidden list box
with all main and sub details, which will hold
as a master.
Once u select a value in first select u can
remove the values in the second and add
the values respective to the first select.
I have done the same and its working fine...
if u want details...mail me.
regards


Have a wonderful day and wish u success<p>S Chandra Mohan<br />sc_mohan_us@yahoo.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Changes in JSP - Urgent
 
Similar Threads
JSP Form values Not able to submit
multiple submit buttons in jsp
Populating dropdown box
Using dropDown in jsf
drop down box using struts