struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Flores <>
Subject Re: Use Same JSP Page For Several Modes (View, Edit, Approve, Create)
Date Wed, 19 Nov 2008 14:38:11 GMT
The way I did was to override the backing components of the struts tags. 
I added logic there to simple control which template is used (depending 
on the role).  I felt that I could use the Components (and Tag objects) 
as controllers for this purpose.

Mississippi John Hurt wrote:
> Does anyone have sample JSP with a clean, easy way to utilize the same JSP
> page for multiple views, maybe even by users with different roles? Is there
> any best practice? I wonder if anyone has found a way to do it with as
> little hardcoding as possible, and also being able to handle multiple modes,
> with different submit buttons for users with different roles.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message