Adding New Content

Adding JSPs

This application uses Struts 1.1, and in Struts 1.1 it is recommended that all JSPs pass thru some action. Therefore, you must first add a forwarding action to your JSP if you wish to follow this model. Please refer to the Struts documentation for information. The struts-config.xml is found in the directory web/WEB-INF. Below is an annotated version of a new JSP for the application:

<!-- This is included at the top of all jsps. This defines the imports, page directives and global variables -->
<%@ include file="/includes/all.jsp" %>

<!-- Reference the primary layout -->
<tiles:insert definition=".primary" flush="false">

	<!-- Tell the layout the title of your page.  This is included in the html head.
	<tiles:put name="title" direct="true">Browse</tiles:put>
	
	<!-- insert your page's content -->
	<tiles:put name="content" direct="true">
    
		Some Content

	</tiles:put>
</tiles:insert>


Copyright © 2003 Alexander Bibighaus et al. All rights Reserved.