Re: sitemesh and java web app form authentication
Van <[email protected]> Sat, 16 Jul 2005 14:21:00 -0700
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user |
|---|---|
| Message-ID | <[email protected]> |
On 7/16/05, Jay Wright <[email protected]> wrote: > While using Java's built in web app authentication (form based login), the login page seems to escape the sitemesh decorators. > > Should it? I can't imagine any reason for this. The resulting URL is mapped in the decorators.xml and works once logged in. Yeah. I had the same problem. Same problem with the error page definitions in my web.xml too. I had to resort to having placeholder welcome/error JSPs that forward to an action mapping that simply forwards to the real JSP. For example, my welcome file contents is: <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <logic:forward name="welcome"/> Where the "welcome" forward points to an action mapping that simply forwards to the real login JSP. When I do that, the pages get decorated. If I don't, they don't. If there is a better solution, I would love to hear it. For now, I just live with this one level of indirection and a couple of extra JSPs to make it work. > > Jay Hope this helps, Van -- - Mike "Van" Riper [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]