Yes, you can do this. You need to use three slashes at the front, so your
example would be:

<c:import url="file:///d:\repository\assets\doc.html"/>

>From the remaining separators, you can use either '/' or '\', but personally
I always use '/' because then I don't have to worry about which I can use
where.

--
Martin Cooper


----- Original Message -----
From: "Matt Raible" <[EMAIL PROTECTED]>
To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 7:14 PM
Subject: Using c:import to include the contents of a file


> I want to do the following:
>
> <c:import url="file://d:\repository\assets\doc.html"/>
>
> However, I get an UnknownHostException - is it possible to do this with
> JSTL?  My only solution (so far) is to use an iframe and do:
>
> <iframe src="file://d:\repository\assets\doc.html"></iframe>
>
> It's the only way I've found to read a file from the filesystem when
> it's outside Tomcat's webapps directory.
>
> Thanks,
>
> Matt
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to