-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pierre,

On 3/8/2009 1:05 PM, Pierre Goupil wrote:
> Unfortunately it won't work as you will be unable to provide a valid URL for
> anything inside WEB-INF. But maybe you can tell us why point 2 (use a
> resource stream) doesn't suit you so that we can explore this way or another?

One way to get a valid URL for something inside WEB-INF is to do this:

ServletContext application = ...;
URL resource = application.getResource("/WEB-INF/xsds/my.xsd");

Then you can use the URL to fetch the content or whatever else you want
to do.

Of course, you have to have access to the ServletContext.

Hmm... this question seems a lot like another one I saw today...

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm4LYQACgkQ9CaO5/Lv0PDzygCcCMhNCUbFOIsXn8eTwJA9gsy3
hH0AoLU17zaOQW136yHC+G7JA3YaOyTv
=z85Y
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to