ava.io.File.separatorChar in jsp

hallo

In jsp T want rset a javascript variable

out.print("parent.seperatorChar="+"'"+java.io.File.separatorChar+"'"+";");

but I become an error Error: unterminated string literal

what is wrong

[326 byte] By [the_Orienta] at [2007-11-26 18:03:15]
# 1

Try the following in your JSP it should work:

<%

out.print("parent.seperatorChar=" + "'" + java.io.File.separatorChar + "'" + ";");

%>

Remember to enclose your java scriptlet code inside <% %>

appy77a at 2007-7-9 5:33:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
it is the same what I have writeout.print("parent.seperatorChar=" + "'" + java.io.File.separatorChar + "'" + ";");Error: unterminated string literal
the_Orienta at 2007-7-9 5:33:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

I didn't get the error Error: unterminated string literal

I got this output on the JSP :

parent.seperatorChar='\';

The "unterminated string literal" error message is a Javascript error message.

Are you using Javascript on that page?

Check your Javascript code for syntax errors.

appy77a at 2007-7-9 5:33:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...