tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ananth Krishna" <ana...@infotalentsystems.com>
Subject Re: How to hide a context path?[urgent!]
Date Thu, 13 Feb 2003 09:35:59 GMT
Can any one tell me how to run servlets and jsps with an example on tomcat
4.0

thanks and regards
ananth krishna
----- Original Message -----
From: "Bill Barker" <wbarker@wilshire.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, February 13, 2003 12:19 PM
Subject: Re: How to hide a context path?[urgent!]


>
> "Sean Dockery" <sean@sbdconsultants.com> wrote in message
> 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
> > sean@sbdconsultants.com
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > ----- Original Message -----
> > From: "Nancy Crisostomo Martinez" <nancycm@correo.uqroo.mx>
> > To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> > 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: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message