Home > Articles > Programming > Java

  • Print
  • + Share This
From the author of

Creating a Help Page

In addition to the input and output pages, you will need to create a help page. This page provides the user with navigational links to use the message board. It also displays errors encountered by the controller, as shown in Listing 3.

Listing 3  help.jsp — The help page for the message board

<%@ taglib uri="/WEB-INF/struts.tld" prefix="struts" %>
<head><title><struts:message key="help.title"/></title>
<struts:ifAttributeExists name="error" scope="request">
<jsp:useBean id="error" class="String" scope="request"/>
<font color="red"><%= error%></font><br/>
<a href="create.do"><struts:message key="help.create"/></a>
<a href="bboard.do"><struts:message key="help.board"/></a>
  • + Share This
  • 🔖 Save To Your Account