You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marty Jones <ma...@dailyaccess.com> on 2004/08/26 17:26:57 UTC

Customizable View For A Given Action

I was wondering if Struts supports a way of supporting customized views for a
given action?  For instance, a particular group of users may have a different
look and feel to a given web application that another group of users.  Looking
at the Struts configuration file, it seems that you have to specify the .jsp
file that will be used for a given action result.  

Does anyone know if struts can do this?

Marty Jones



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Customizable View For A Given Action

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Marty Jones" <ma...@dailyaccess.com>
> I was wondering if Struts supports a way of supporting customized views
for a
> given action?  For instance, a particular group of users may have a
different
> look and feel to a given web application that another group of users.
Looking
> at the Struts configuration file, it seems that you have to specify the
.jsp
> file that will be used for a given action result.
> Does anyone know if struts can do this?

You could have multiple forwards for the action and programatically
determine which one to use.

I have the same Action mapped to two different URL patterns, with a separate
set of forwards for each.

You could do it with CSS and dynamically pick which stylesheet to use based
on something in the user's session.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Customizable View For A Given Action

Posted by James Mitchell <jm...@apache.org>.
What you are wanting can be implemented 100 different ways, with 150
different approaches.

Struts does not have any direct support for doing this.  There are 3rd party
tools out there for doing this.  If I had to do it, I would use a customized
Tiles layout.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message -----
From: "Marty Jones" <ma...@dailyaccess.com>
To: <us...@struts.apache.org>
Sent: Thursday, August 26, 2004 11:26 AM
Subject: Customizable View For A Given Action


> I was wondering if Struts supports a way of supporting customized views
for a
> given action?  For instance, a particular group of users may have a
different
> look and feel to a given web application that another group of users.
Looking
> at the Struts configuration file, it seems that you have to specify the
.jsp
> file that will be used for a given action result.
>
> Does anyone know if struts can do this?
>
> Marty Jones
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org