Previous Topic: Change the Tasks Displayed For Administrators

Next Topic: Example: Adding a Register New Users Link

Add Tasks to the Task Selector Page

Registration Services uses three files to define a task link:

The locale properties file (dms_en_US.properties)

Determines the link text

The presentation properties file (global.properties)

Determines whether or not the link is displayed based on administrative role

The Task Selector page (launch.jsp)

Sets up the link

To add a new task to the Task Selector page:

  1. Make sure that the task has an identifier and has entries in the locale properties file and global.properties:

    Note: The identifier for the task must be the same in the locale and presentation properties file.

  2. In launch.jsp, define a form:

    <form name="FormName" action="/servlet/
    DMS<%=request.getAttribute("adminFilter")%>
    "targetpage.jsp" method="post">

    <input type="hidden" name="ACTION" value="ActionName">

    <input type="hidden" name="ORGPATH" value="<%=orgpath%>">

    </form>

    where:

  3. Define the JavaScript:

    <script language="JavaScript">

    <!--

    function FunctionName() {

    document.FormName.submit();

    }

    //-->

    </script>

    where:

  4. Add the link:

    <ul align="center" type="disc">

    <% if (accessProperties.getVisible(role, "IDENTIFIER"))
    { %>

       <jsp:setProperty name="localebean" property="key"
    value="IDENTIFIER"/>

    <li><font class="SmallLink"><a href="javascript:Function
    Name()"><jsp:getProperty name="localebean"
    property="label"/></a></font></li>

    where: