I am trying to integrate the multi-app support into my application. I
am using tiles and the ActionComponentServlet as my action class.
I have the following settings configured for the action servlet.
<web.xml>
<!-- The default application -->
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<!-- The Course Manager sub-application -->
<init-param>
<param-name>config/manager</param-name>
<param-value>/WEB-INF/struts-config-manager.xml</param-value>
</init-param>
<!-- The Content Viewer sub-application -->
<init-param>
<param-name>config/viewer</param-name>
<param-value>/WEB-INF/struts-config-viewer.xml</param-value>
</init-param>
</web.xml>
In my base (deployed) directory, I have a jsps in /, in /manager, and in
/viewer. I want to provide links after the user logs in to the
manager's main menu, and to the viewer's main menu. I have 3
tiles-config.xml files, one for each sub-application. I have a mainMenu
tile defined in each.
And now I have a couple of questions:
1. What should the links be to the sub-applications?
/do/manager/mainMenu or /manager/do/mainMenu? I have a DefaultAction
class that will proxy unknown mappings to the appropriate forward. Can
I use this class with all sub-apps?
2. Do I have to create 3 mappings for the action servlet? Do I need
/do/*, /manager/do/*, and /viewer/do/*?
3. I'm using form-based authentication and want to allow admin/user
roles to the main app, admin to manager app, and user to viewer app.
How do I setup the url-pattern? /do/manager/*, or /manager/do/*?
Thanks,
Matt
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>