Hi all,
I am starting to move our existing web application to the struts framework
and would like to ask a design question.
Here's my problem. After logon, the application user is forwarded to one of
three screens - sysadmin, admin, user. The screen used is determined by the
user's role. (The three screens have no commonality, so I don't think I can
use the one <forward name="success".../> action attrubute shown in the
example application.)
I'm looking for some way to define the various paths in struts-config.xml so
that the logon action class doesn't have hardcoded paths to the three
role-based screens.
Do I need to create my own ActionMapping class and add additional <forward
name=/> entries, or is there some other way to do this?
Thanks,
Denis Hanson