Different decorators for the same URL

48 views
Skip to first unread message

Kasper

unread,
Nov 8, 2011, 3:33:45 AM11/8/11
to SiteMesh 3 Users
Hi there

I need to specify one decorator for a given page, when the user is
logged in, and one decorator for the user that is not logged in? What
is important is that the URL does not change. So if my URL is:

www.mysite.com/myname

It should stay the same, but be decorated differently whether im
logged in or not.

Im using Struts2 (AppFuse stack).

I really hope this is possible,

Joe Walnes

unread,
Nov 11, 2011, 8:15:23 AM11/11/11
to sitemes...@googlegroups.com
You can implement your own DecoratorSelector to do this.

Reply all
Reply to author
Forward
0 new messages