Javascript question
Hi,
I have one jsp file and two javascript files like
*** a.jsp********
<html>
<head>
</head>
<body>
<%! String a = "BBH" %>
<script src= b.js></script>
<script src = c.js></script>
</body>
</html>
************* b.js***************************
var str = <%= a %> ;
var c= str + "BOSTON";
***************** c.js**********************
document.write(c);
I want the same functionality.
But I don't know how to pass parameters from a.jsp to b.js and from b.js to c.js
or is there any other way ?
Thanks,
-Priya

