Dynamically loading HTML select without using a form
Posted on 2004-04-21
I'm diving into JSP head first without really knowing what I am doing to much, so please bear with me.
I am developing an small web app to be used within the company. The app will allow a user to select a state. From that selection the next drop down will be populated, from which the user can select a county within that state. This selection will then populate a text box with the directories that make up that county.
My welcome screen is a JSP page that populates the state drop down as it loads. What I can't figure out is how to populate the county dropdown based on the state selected. I am using a bean to do all my database work, each function returns a Vector. I tried to create a scriptlet to call the next function from the bean to populate the county Vector but everytime I try to compile the JSP page I get the wonderful "Can't Resolve Symbol" error with the cute little carrot right under the beginning of my bean name.
I don't really want to use a form for this, simply because I am not sure how. If I did would my method be POST or GET?
At any rate, could someone please help me out here?