Workaround to pass javascript value to jsp...

C

chichu9

Hi,

I would like to find out how to do the following workaround.

I retrieve the value from database using a javabean and return this to
jsp page and display the data using html/javascript dropdown listbox.

I will need to use the selected value from user and pass this value to
javabean to retrieve another value to be displayed on the same
page/form basically achieving the drilldown effect.

I would prefer not to do a form post everytime the user selects the
value unless it is the ONLY option.

Pls help.
 
J

John C. Bollinger

chichu9 said:
I would like to find out how to do the following workaround.

I retrieve the value from database using a javabean and return this to
jsp page and display the data using html/javascript dropdown listbox.

I will need to use the selected value from user and pass this value to
javabean to retrieve another value to be displayed on the same
page/form basically achieving the drilldown effect.

I would prefer not to do a form post everytime the user selects the
value unless it is the ONLY option.

Key words: "value from the user". If you need to present the page to a
user and then perform some action based on the user's subsequent
behavior then there is no escaping a second round trip to the server.
There are ways to make the second round trip less obvious to the user
(that's a key part of what "AJAX" is about), but you can't avoid it
altogether.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top