Example: JSP, CSS, and the Standard Interface

To demonstrate how JSP and CSS files interact with each other (and appear in the standard interface), consider the Create New Request page. The Create New Request page is a JSP page in the standard interface. The appearance of the Request Type field is governed by a CSS file.

  • In the JSP RequestCreateList.jsp file:

    <td class='field-prompt' nowrap><span>Request Type:</span></td>
  • In the CSS GlobalStyleSheet.css file:

    .field-prompt
    {
    font-family: Arial, Verdana, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #000000;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    }
  • In the standard interface:

    Figure 5-1. Field prompt example shows the Request Type field in the Create New Request page.

    Figure 5-1. Field prompt example