• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interesting!!!!!!!!!!!!!!!!!!!!!!

 
balu gates
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to access a variable defined in a javascript using jsp
Ex:
<script>
function func(Var)
{
var someVar=Var;
<%
session.setAttribute("SomeString", Var);
%>
}
Is it correct else correct it
Reply
Thanx
 
Rama Chandra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javascript is executed in the client(browser) while the JSP
script is executed in the server. The Javawcript code and html code of the JSP file is simply sent to the clent after executing the server side code. So there is no way to access the javascript variables in Serverside script.
 
ray bond
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way to access javascript variable in applet , applet variable can be accessed in javascript but how to access javascript variable in applets?
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic