+1 ----- Original Message ----- From: "Monkeyden" <[EMAIL PROTECTED]> > > I have used Bart's idea (custom tag) with success. Also, if one were set on > using tiles, you could drop this custom tag into a layout definition for > pages requiring a referer and define another layout for pages which don't. > There are many ways to do this, each with it's own measure of artistic > license. I don't think there's a silver bullet however. > Sure, there is no silver bullet, it all depends aon your application requirement. But still here is what I call as the preference list 1. Filters (this would be struts independent also) 2. Custom Tags (+tiles) 3. jsp:include
Raghu, but you may like to play with this idea first using JSPs, then move on to filters. > > > On 8/7/06, Monkeyden <[EMAIL PROTECTED]> wrote: > > > > I don't include any tiles in my application(s). It's the layout JSP page > > that includes the screen specific HTML and handles the common code (META, > > HTML, BODY, menus, etc.). Implemented this way, it's not nearly as easy to > > inadvertently avoid the META tags as you would have us believe. That said, > > I don't mind the Filter solution, nor do I prefer one over the other. > > > > > > On 8/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > > > wrote: > > > > > > I would suggest that a servlet filter is a better choice than depending > > > on the inclusion of a particular tile. > > > > > > > -----Original Message----- > > > > From: Thomas Joseph [mailto:[EMAIL PROTECTED] > > > > Sent: Monday, August 07, 2006 2:36 AM > > > > To: Struts Users Mailing List > > > > Subject: Re: Browser History by HTTP-REFERER > > > > > > > > > > > > Try this: > > > > 1. Include a common JSP page (say like the company logo) in > > > > every other JSP page (using tiles is perfect) that will check > > > > for a user object (say username or user credential or > > > > something else) in session that is created only on Login. 2. > > > > If the object is not found, redirect to the login page. > > > > > > > > There can be more streamlined versions of the same logic. > > > > > > > > Thanks and Regards, > > > > Thomas Joseph > > > > > > > > Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | > > > > Cochin-682015 | India > > > > www.kottsoftware.com > > > > -------------------------------------------------------------- > > > > ------------------ > > > > This email (including any attachments) is subject to > > > > copyright, the information in it is confidential, and it is > > > > legally privileged. Use of this email or of any information > > > > in it other than by the addressee is unauthorized and > > > > unlawful. If you are not the intended recipient of the mail, > > > > kindly intimate the author of the mail and delete the same. > > > > -------------------------------------------------------------- > > > > ------------------ > > > > It doesn't matter how you were, but rather how you are that > > > > decides your future. A right attitude will get you to Success. > > > > ----- Original Message ----- > > > > From: Raghuveer > > > > To: 'Thomas Joseph' > > > > Cc: user@struts.apache.org > > > > Sent: Monday, August 07, 2006 10:54 AM > > > > Subject: RE: Browser History by HTTP-REFERER > > > > > > > > > > > > Yes ,I am trying to restrict users only after login. > > > > Like banking applications Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India www.kottsoftware.com ---------------------------------------------------------------------------- ---- This email (including any attachments) is subject to copyright, the information in it is confidential, and it is legally privileged. Use of this email or of any information in it other than by the addressee is unauthorized and unlawful. If you are not the intended recipient of the mail, kindly intimate the author of the mail and delete the same. ---------------------------------------------------------------------------- ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]