Have JSP variable ${remoteFolder}
It's value is \\file-srv\demo
Use jQuery embedded in this JSP.
jQuery resolves ${remoteFolder}
variable as \file-srvdemo ,i.e. one slash is removed.
How to remain initial value of this var?
edited: when ${remoteFolder}
is used inside form
tag, that it resolved OK.
edited2:
JS part of JSP, slashes are stripped out..
<script>
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.text = "var $j = jQuery.noConflict();";
oScript.text+= "$j(document).ready(function(){";
...
oScript.text+= "'script':'<%= request.getContextPath() %>/uploadFile?portletId=${portletId}&remoteFolder=${remoteFolder}',";
...
oScript.text+= "});";
document.body.appendChild(oScript);
</script>
edited3:
earlier usage of ${remoteFolder}
var,that was all OK with slashes
< form enctype="multipart/form-data" method="post" target="uploadFrame" action="<%= request.getContextPath() %>/uploadFile?portletId=${portletId}&remoteFolder=${remoteFolder}">