top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to pass javascript variable to java method in jsp?

+1 vote
128 views
How to pass javascript variable to java method in jsp?
posted Aug 24, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Java script plays on client i.e. browser where java code is server side thing so you can't simply do this.

What you can do is submit the calculated variable from javascript to server by form-submission, or using URL parameter or using AJAX calls and then you can make it available on server. I hope it would be helpful for you.

answer Aug 24, 2015 by Salil Agrawal
Similar Questions
+1 vote

I have a java project in eclipse but my project using some of the javascript and jsp file. I want to debug some of the jsp and javascript file in eclipse but those files are not appearing in debug mode.

Please mention the steps for configure the debug setup in eclipse.

+3 votes

I am trying to debug a javascript file, which is used in a .jsp file. When I debug the using F12 in IE10 I did not find that particular file in the debugger tool.

Can anybody please tell, why that particular file is not showing even it is present in project folder location?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...