Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Workaround to pass javascript value to jsp...

Thread view: 
chichu9 - 23 Feb 2006 01:11 GMT
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.
John C. Bollinger - 24 Feb 2006 04:13 GMT
> I would like to find out how to do the following workaround.
>
[quoted text clipped - 7 lines]
> 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.

Signature

John Bollinger
jobollin@indiana.edu



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.