jsp default escaping not wanted

R

rouadec

Hello,

I'm trying to output some JSP expression containing backslahes \ and
cannot find how to turn off the default escaping which seems to take
place.

String test = "test\\testse";

<%=test%> will output something along the lines of test%5ctestse which
may look good on the page or in a url but NOT in the FTP urls I am
generating where the username has a backslash in it (windows domain
style usernames).

The jsp in question is in an HTML page with the declaration <%@ page
language="java" contentType="text/html"%> and I won't change this since
this is an html document.

Any idea on how to stop the JspWriter HTMLescaping this expression?

Thanks,
Antoine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top