Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using drop down list value in jsp with AJAX

843840Aug 24 2010 — edited Aug 25 2010
Hi All,

I am having a jsp page , which contains a dropdown list.
When user selects an item from the list, I've to pass this value to my java class to access other related information to be displayed on the same page without refreshing/submiting the page.
Now the problem is, i am getting selected value in java script function but how to use this variable & pass it to java class.
I googled a lot and found that AJAX could be used for it. Please suggest me that -
1) Whether AJAX is the only approch ? I am affraid of it bcoz I hvn't work on it.
2) Is there any other workaround by which i can use that value & call my java class method, without refreshing the page?
3) If I've to use AJAX, plz help me if u've similar example. I went through the w3 scool, but not getting much idea.

Kindly help me, the problem is very urgent with the strict timeline.

Thanks & Regards,
Sneha
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2010
Added on Aug 24 2010
3 comments
678 views