If you want to users to be able to go directly to a form, you need to make some changes within the WAR file for the User Application and re the WAR file. The configuration steps are described below.
In the WEB-INF/struts-config.xml file, specify roles="authUser" within the following action statement:
<action path="/getAFResourceList" scope="request" name="apwaListForm" type="com.novell.srvprv.apwa.actions.GetResourceList" roles="authUser">
Also in the WEB-INF/struts-config.xml file, specify roles="guest, authUser" within the following action statement:
<action path="/createAFResourceRequest" scope="request" name="apwaDetail" type="com.novell.srvprv.apwa.actions.ProcessResourceRequest" roles="guest,authUser">
Also in the WEB-INF/struts-config.xml file, add the following action mapping:
<action path="/getGuestResourceList" scope="request" name="apwaListForm" type="com.novell.srvprv.apwa.actions.GetResourceList" roles="guest"> <forward name="success" path="tiles.guestResourceList"/> <forward name="displaySelector" path="tiles.guestSelector"/> </action>
In the WEB-INF/tiles-defs.xml file, add the following definitions:
<definition name="tiles.guestSelector" extends=".unauthenticatedLayout"> <put name="title" value="JSP_TITLE_SELECTOR"/> <put name="body" value="/jsps/tiles/selector.jsp"/> </definition> <definition name="tiles.guestResourceList" extends=".unauthenticatedLayout"> <put name="title" value="JSP_TITLE_RESOURCE_LIST"/> <put name="body" value="/jsps/tiles/resourceList.jsp"/> </definition>
Re the WAR file.
The URL for accessing a form directly must use this format:
http://localhost:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=JSP_MENU_RESOURCE_REQUEST_CLASSIC&wfdn=PRDEFDN
The parameter PRDEFDN must be replaced with the DN of the request definition. Here’s a complete example that includes this parameter:
http://localhost:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=JSP_MENU_RESOURCE_REQUEST_CLASSIC&wfdn=cn=TestPRDEF,cn=RequestDefs,cn=AppConfig,cn=Test-Antelope,cn=TestDrivers,o=novell