Creating a Webtop Login Warning Page

A colleague asked me if there was a way to display a warning page to a user before they logged into Webtop.  This is pretty standard fare for government systems, they all have a page of legal mumbo-jumbo that you have to click through before you can access the resources of the system.  My colleague did not want to modify the Webtop login page with the legalese, rather insert this warning page before it.  After a little snooping around, here is what I came up with (on Tomcat).

  1. Rename the ../webapps/webtop/index.jsp file to index.jsp.old
  2. Edit index.jsp to include the following:

    <%@ page import=”com.documentum.web.form.Form” %>
    <%@ page contentType=”text/html; charset=UTF-8″ %>
    taglib uri=”/WEB-INF/tlds/dmform_1_0.tld” prefix=”dmf” %>
    <script type=”text/javascript” src='<%=Form.makeUrl(request, “/index.js”)%>’></script>
    <table border=”1″>
    <tr><td align=”center”> !! ATTENTION !! </td></tr>
    <tr><td>You are entering a computer systems owned by my Big Brother.<br/>
    By clicking the ‘Agree’ button below, you consent that he may<br/>
    monitor your actions, record your key strokes, blah, blah, blah…<br/>
    <td align=”center”> !! ATTENTION !! </td></tr>
    <input type=”button” value=” I Agree” onClick=”doRedirect(‘/component/main’);” />


  3. Stop Tomcat, delete the working directory for Webtop (../work/Catalina/localhost/webtop), and restart Tomcat. Actually, you just need to delete the ../work/Catalina/localhost/webtop/org/apache/jsp/index_jsp.* files if you don’t want to delete the entire working directory.
  4. Access the Webtop URL as you normally do, and you should now see your warning page before you login to Webtop.

Essentially, all you are doing is moving the doRedirect() function call from the <body onLoad> event, to an <input onClick> event, and inserting the warning text on the index page. Here is an example of the result.

Clicking “I Agree” then displays the typical Webtop login screen. The warning will also reappear if the user logs out of Webtop using the “Logout” button.


About Scott
I have been implementing Documentum solutions since 1997. In 2005, I published a book about developing Documentum solutions for the Documentum Desktop Client (ISBN 0595339689). In 2010, I began this blog as a record of interesting and (hopefully) helpful bits of information related to Documentum, and as a creative outlet.

2 Responses to Creating a Webtop Login Warning Page

  1. doquent says:


    Thanks for sharing the tip.

    As the change is outside the custom folder, we need to carefully preserve the changes during an upgrade.



    • Scott says:

      Good point, Pawan. I’m not sure how to achieve that with this particular file. Maybe someone out there has that solution.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: