This is an error that came up after I got a previous question here answered. Essentially I'm trying to bring the absPath of the folder with me so I can make some Files at runtime regardless of where my code is located. I was recommended to use
getServletContext().getRealPath("/");
To find the correct path.
I tried it in my JSP page, but I get an unterminated string literal right when I create the absPath variable. Here is the script I try to run.
<script type="text/javascript">
        var RemoteUserId = "<%=(request.getRemoteUser()==null)? "blah" : request.getRemoteUser()%>";
        var contextPath = "<%= request.getContextPath()%>";         
        var extPath = "<%=extPath%>";
        var absPath = "<%=getServletContext().getRealPath("/")%>";
        var env='<%=string1%>';
</script>
What am I missing? Do I have to escape the returned path name, or did I misinterpret when I was supposed to use this.
Edit**
This is what the source shows upon accessing the page 
 (slightly tweaked so I'm not showing my full C: path)
<script type="text/javascript">
        var RemoteUserId = "blah";
        var contextPath = "/TRACK";         
        var extPath = "http://xxx/sales/it/tlp/ext-3.2.1";
        var env='null';
        var absPath = "C:\Documents and Settings...\TRACK\";
</script>
 
    