tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Dockery" <>
Subject Re: How to hide a context path?[urgent!]
Date Wed, 12 Feb 2003 21:52:43 GMT
You cannot mask your context path.

You can hide the directories in your JSP path by making the following entry
in your web.xml file...






Please note that this assumes that your Context path="".

This won't prevent someone from accessing your JSP page, however.  All they
need to do is type http://localhost:8080/validation/Validate.jsp to get to
that same JSP page.  Aliasing is meant to be a tool of web application
developers to use "logical" views--so the physical JSP page can be moved or
replaced with a different one in an alternate location without having to go
through the web application and change every resources that links to it.

Sean Dockery
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants

----- Original Message -----
From: "Nancy Crisostomo Martinez" <>
To: "Tomcat Users List" <>
Sent: Wednesday, February 12, 2003 14:28
Subject: How to hide a context path?[urgent!]

> Hi everyone!
> Is it possible to mask all the directory tree referenced in a webapp
> context when you called in a navigator?
> I mean:
> now I type this url to access to a jsp file placed in
> webapps/security/pass/  :
>       http://servername:8080/security/pass/Validate.jsp
> But I would like to hide or to mask the name of the directories typed in
> the path, just like this:
>       http:/servername:8080/validation/Validate.jsp
> Even, I don't know if I can do the same with the jsp file names in order
> to hide the names of those files....?
> I'll appreciate any idea or hint!
> Thanks in advance!
> Nancy.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message