Like this article? We recommend
Creating the View JSP
Create a JSP to embed the output text property of the data island, as shown in Listing 3.
Listing 3 showtree.jspDisplaying the Hierarchy of Messages
<%@ taglib uri="/WEB-INF/struts.tld" prefix="struts"%> <jsp:useBean id="dataIsland" type="MessagesIsland" scope="request"/> <html> <title><struts:message key="showtree.title"/></title> <body> <base target="message"/> <center><struts:message key="showtree.title"/></center> <p/> <jsp:getProperty name="dataIsland" property="text"/> </body> </html>
Add an entry in action.xml for the new action class:
<action path="/showtree" actionClass="ShowHierarchyAction"> <forward name="help" path="/help.jsp"/> <forward name="success" path="/showtree.jsp"/> </action>