[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: servlet and xml

Subject: Re: servlet and xml
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Wed, 24 Mar 1999 09:53:33 -0500
john servlet
At 06:10 PM 3/24/99 +0530, Jayadeva Babu Gali wrote:
>I am trying to dynamically creating an XML document with the Java
>Servlet and i am trying to style that XML information to the
>browser(IE5) using the static xsl document in the same directory where
>the servlet is there when i am trying to execute that servlet it is
>giving error like this
>Access is denied. Error processing resource
>'file://c:\servlets\test.xsl'.
		...[java code]...
>       out.println("<?xml:stylesheet type=\"text/xsl\"
href=\"file:///c:/servlets/test.xsl\"?>");

I'm guessing, because I don't know from Java. But given that this is to run
as a servlet, *shouldn't* it be explicitly prevented from accessing a
resource on the local file system?

Wonder if you could get it to run by using a relative pathname rather than
an absolute one, e.g.:
	out.println("<?xml:stylesheet type=\"text/xsl\" href=\"test.xsl\"?>");

?

=============================================================
John E. Simpson          | It's no disgrace t'be poor, 
simpson@xxxxxxxxxxx      | but it might as well be.
                         |            -- "Kin" Hubbard


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.