Hi folks,

I have different help pages for different jsp pages and for different roles.

Example:
Page 1 help link shows help A
Page 2 help link shows help B if you have role X
Page 2 help link shows help C if you have role Y

I am trying to find a declarative way, in the struts-config or
tile-definition to do this.

Here is what I have so far:

In my tile-definition configuration, each page definition defines the <help
context>.
The help link redirect to the <help.do> action with the <help context>
parameter.

I tried to code the <help> action to return the forward with a name equal to
the <help context>, each forward pointing to a definition and many
definitions with different role attribute. It turns out that we cannot have
more than one definition with the same name.

I do not want to code something like: 
context 1 then forward to A
context 2, role X then forward to B
context 2, role Y then forward to C

It would be great if there was a role attribute on the forward tag of the
action but it does not.

Thank you for your input.
Stephan

Reply via email to