I like to know how to populate the listbox dynamically using jsp..
The scenario is i have two list box in my jsp page form where the selection of value from list 1 should populate the list 2.
How can i do it through servlet,jsp so that i retain the previous values entered in my form and also get the list 2 populated based on the value selection in list1.
Any inputs /ideas is greatly welcome.. thanx for the time in advance.
Joined: Jan 16, 2001
anybody there , who can give some ideas.
I try to forward the request on my script onchange event, but this stops loading the whole page itself..
Originally posted by roshini sridhar: i find lot of whitespace substituted in the html anyway is there to avoid it.
That's pretty much the nature of JSP. This article goes into details regarding the preserving of whitespace.
Except for very large pages, a little whitespace isn't a big deal, but if you are concerned about network overhead, you could write a servlet filter to remove excess whitesapce or to gzip the output. [ July 20, 2006: Message edited by: Bear Bibeault ]