You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Evans <rd...@webtrak.co.uk> on 2000/11/10 16:30:53 UTC

Dispatching to a jsp file

I think this is a basic servlet API/Jsp question, but I am rather confused.

I have a servlet which needs to send a Jsp page back to the client.  The
servlet decides the location of the file dynamically.  Ideally I do not want
the Jsp files to be in the webroot because I don't want users to access them
directly.

I've looked at getRequestDispatcher but this takes a URI, not a file name.  Is
there any way to cause an arbitrary file somewhere to be read by the Jsp
engine and returned to the client?

Richard