• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing a html/javascript parameter into a java function

 
Claudia Vaz
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have a html input parameter. When i do the "OnChange" i call a javascript function that calls a Java function.
My problem is that i want to pass the html parameter to the java functio. How can i do this?
Thanks
Claudia Vaz
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you are using servlets or JSP, you can use the httpRequests getParameter and getParameterValues methods.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my knowledge you have to do a submit so that this is propagated to the java function on the server side.
Client has knowledge about server. Server has no idea about the html parameter until it is submitted.
Hope this clarifies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic