i desperately need some suggestion on how a javascript variable make available in Scriptlet. i know that javascript runs on client side where scriptlet code runs on the server. But i think there is some way to make the javascript variable available in scriptlet. below is my code.
Javascript fun
function showDirStructure(repoId, repoName){
<%
String sr = repoId;
if(sr!=null){
JSONObject obj = getDirStructure.createJsonObject(request.getParameter("repoId"));
%>
The above javascript function (showDirStructure) takes two parameter. i need to use those parameter on Scriplet tag to call createJsonObject (server side method).