top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to pass javascript variable to java method in jsp?

+1 vote
658 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 LinkedIn 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?

...