Tag files is another option. Here's a simple layout tag file:

mainlayout.tag:
<%@ tag pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<body>
  <h1>header</h1>
  <jsp:doBody/>
  <p>footer</p>
</body>
</html>


And here's a view:

startpage.jsp:
<%@ taglib prefix="layout" tagdir="/WEB-INF/tags"%>
<layout:mainlayout>
  the content of the start page
</layout:mainlayout>

Place the tag file in war/WEB-INF/tags. 




-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to