"Sean Dockery" <[EMAIL PROTECTED]> wrote in message 01f701c2d2e1$128f7020$6400000a@loki">news:01f701c2d2e1$128f7020$6400000a@loki... > You cannot mask your context path.
Not really true, but it usually costs more in effort than it is worth :). I use Sean's method below to hide the names of my JSP pages (and in some cases, even change the url-pattern to end in ".html" :). > > You can hide the directories in your JSP path by making the following entry > in your web.xml file... > > <webapp> > > <servlet> > <servlet-name>ValidateJSP</servlet-name> > <jsp-file>/security/pass/Validate.jsp</jsp-file> > </servlet> > > <servlet-mapping> > <servlet-name>ValidateJSP</servlet-name> > <url-pattern>/validation/Validate.jsp</url-pattern> > </servlet-mapping> > > ... > > </webapp> > > 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 > [EMAIL PROTECTED] > Certified Java Web Component Developer > Certified Delphi Programmer > SBD Consultants > http://www.sbdconsultants.com > > ----- Original Message ----- > From: "Nancy Crisostomo Martinez" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
