tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sierra Fernandez <>
Subject RE: How to stop the URL comming up?
Date Thu, 27 Nov 2003 12:22:21 GMT

you're right...frame way is fool-proof ;-). One posibility is using a
servlet as default index page. This servlet should redirect to whichever JSP
you would like. The way to do the redirection in order to the URL didn't
appear in the browser is the following:


You can do this manually or using STRUTS. It's quite usefull.
Bear in mind that is possible for a user to get a JSP if he knows the URL
but he or she is supposed to know noone. If you don't trust very much, you
can combine this with a session id control to redirect to the main page if
the user tries to get a JSP directly.

David Sierra Fernandez

> -----Mensaje original-----
> De: BAO RuiXian []
> Enviado el: jueves, 27 de noviembre de 2003 12:53
> Para: Tomcat Users List
> Asunto: Re: How to stop the URL comming up?
> Andoni wrote:
> >Hello,
> >
> >I am looking for a way to stop my users bookmarking pages in the
> site.  There is a login screen and they shouldn't even really be
> let bookmark this.  I was given someone's card today an then I
> went to his site: and when I find that
> as I look around the site the url in the URL bar of my browser
> stays at and never includes the page
> name.  This means that all bookmarks only bring up the main page.
> >
> >Is there any way to do this with apache / Tocmat?
> >
> >
> As long as I know, not Apache nor Tomcat can achieve this. But, you can
> implement this by using frame to design your web pages. Again, this is
> only fool-proof, for experienced users, they can still show your
> sub-frame login page in a separate browser by right-clicking the mouse
> and then book mark it.
> Best
> Bao
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message