6.9 Providing Direct Access to a Form

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 redeploy the WAR file. The configuration steps are described below.

  1. 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">    
    
  2. 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">    
    
  3. 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>     
    
  4. 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>     
    
  5. Redeploy 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