File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to get random dropdownlist javascript value at the server site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to get random dropdownlist javascript value at the server site" Watch "How to get random dropdownlist javascript value at the server site" New topic
Author

How to get random dropdownlist javascript value at the server site

Omkar A Deshmukh
Greenhorn

Joined: Aug 16, 2011
Posts: 1
Hello Everyone,
I am new in java ranch!
My application on Jsp.problem is that there will be a dropdown list and button interface.the dropdownlist gives me some database values.when i select one item.i want the selected value in the same page in jsp code through the click on the button.
I already have one click event on that button. I can't submit the dropdownlist value on the same page because due to this page takes lots of time.
Actualy i want in the same page.but i can't.
I also used Ajax and through the session i get the value but for this have to reload the page to getting the desired value.it also takes time.
I also tried to use one function on click event of button in that am calling two function i.e reload the page & my click event function but it is not working guys!!!
also tried to reload the page at my click event function but it only refresh the page not executing the jsp code within the javascript function.
please help me it will going my over the head!!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

It sounds like you have some misconceptions about how JSP works and how it cannot interact with JavaScript. I suggest you read this article to understand how JSP operates.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Omkar Gopalakrishnan
Greenhorn

Joined: Aug 02, 2003
Posts: 2
Thanks for reply,
I think jsp is the server side programing & javascript is the client side if a button interface through which i am calling one event function in which some jdbc as well as java code there.
how can i get some dynamic value through the click event???
I also use ajax for this & through the session i am getting the desired value but i have to reload my page every time.
if am not getting so please help me to understand.
Thanks!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get random dropdownlist javascript value at the server site