This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes how to pass JavaScript value to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to pass JavaScript value to JSP" Watch "how to pass JavaScript value to JSP" New topic
Author

how to pass JavaScript value to JSP

shailesh kumar
Ranch Hand

Joined: Jul 18, 2005
Posts: 36
Hi All,

I have to pass the Javascript variable to the Java Funtion in JSP....here is the scenario..I have 2 comboboxes and I have to populate combo2 besed on the value selected in combo1... How can I do this ??
shailesh kumar
Ranch Hand

Joined: Jul 18, 2005
Posts: 36
Please ignore my last post here is the modified one...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

When you make a mistake, please do not re-post the same question. Click on the icon that looks like pencil and paper to edit your mistakes.
[ September 16, 2005: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60074
    
  65

Think about it for a minute.

JSP runs on the server in order to format an HTML page, including your Javascript, to send to the client. There is no means to interact between the server-side Java and the client-side Javascript.
 
Consider Paul's rocket mass heater.
 
subject: how to pass JavaScript value to JSP
 
Similar Threads
How to set value to session in external js file
how can i get options in 2nd combo on the select of first combo option
Form Submission on drop down onchange event
Ajax with Struts - Loading the lookup values in drop down
assigning a function's result to a form field