Tiles can also help you separate JSPs by role--all you need to do is provide
your own definition factory. In my current app, I created a definition
factory to take the user's role into account. Then in my struts-config, I
just forward to, say, "template.home" and Tiles does all the hard work of
We just went through similar agony with four levels of users. We ended
up with two sets of JSP pages. We ended up doing a second set for one
of the groups because there was just so much of a difference and it
would be helpful to have a different layout.
Of course we are still working on it
I would use 1 jsp for all groups with a custom tag to check if the user is
in a given role:
admin content here
Dave
>From: "Piper, James D CECOM SEC EPS" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [OT] Newbie Design best pr
You might consider writing custom tags of the form
functionality for full user
etc.
This would keep the jsp simple but allow you to localize the functionality.
Edgar
-Original Message-
From: Piper, James D CECOM SEC EPS
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17,
4 matches
Mail list logo