Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

jsp default escaping not wanted

Thread view: 
rouadec - 03 May 2006 00:14 GMT
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
rouadec - 03 May 2006 01:22 GMT
forget it, jsp works fine, firefox showed me incorrect data in this
case....


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.