troubleshooting Question

SiteMesh decorators

Avatar of Lo-Tan
Lo-TanFlag for United States of America asked on
6 Comments1 Solution1399 ViewsLast Modified:
I need an easy way to use separate decorators based upon the users DIRECTORY

Here is a simple example of the current web-application directory


Basicly, I have three different types of users that can log in, and I *need* a way to say that if this user is in /admin/*, to use a separate decorator.

My current decorators.xml looks like this:

<decorators defaultdir="/jsp/decorators">
  <decorator name="admin_layout" page="admin.jsp">
  <decorator name="client_layout" page="client.jsp">
  <decorator name="employee_layout" page="employee.jsp">
  <decorator name="basic_layout" page="main.jsp">

Also, there isn't just an index page, there are actually folders under each directory (like admin/managing/*) containing jsp management files... so I need every jsp in the admin directory and all of its subdirectories to be using a certain decoratory, and different decorators if im an employee, client, etc...

Please help!
Gibu George
Chief Technology Officer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros