• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get random dropdownlist javascript value at the server site

 
Omkar A Deshmukh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Omkar Gopalakrishnan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic