Bug 48775

Summary: multilevel context path with # character problem
Product: Tomcat 5 Reporter: tembugs <tembugs>
Component: Webapps:ManagerAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: blocker Keywords: XSLTBug
Priority: P2    
Version: 5.5.28   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   

Description tembugs 2010-02-19 09:52:51 UTC
Hi,

When I use multi-level context path in tomcat, I have folders created with # inside webapps like folder1#folder2#folder3.  The xsl files inside my web module tries to import other xsl files in the same hierarchy like,inside file1.xsl, I do,

<xsl:import href="file2.xsl">

but this throws an exception "java.net.MalformedURLException: no protocol:file2.xsl".  I tried to give with protocol like,
<xsl:import href="file:///C:\tomcat5\webapps\folder1#folder2#folder3\xsl\file2.xsl"

but it fails throwing an exception that java.io.FileNotFound Exception: C:\tomcat5\webapps\folder1.

Can anyone guide me on this?  I totally blocked on this.......

Thanks in Advance,
Tembug
Comment 1 Mark Thomas 2010-02-19 10:43:16 UTC
# is a reserved character in a url and must be encoded.

Bugzilla is not a support forum. Please use the users list if you require further assistance.