Bug 48775 - multilevel context path with # character problem
Summary: multilevel context path with # character problem
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Webapps:Manager (show other bugs)
Version: 5.5.28
Hardware: All Windows XP
: P2 blocker (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords: XSLTBug
Depends on:
Blocks:
 
Reported: 2010-02-19 09:52 UTC by tembugs
Modified: 2010-02-19 10:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.