Possible Duplicate:
JSP tricks to make templating easier?
I'm new to JSPs and Servlets, I'm wondering is there a neat way to create a layout jsp and reuse it on similar jsp pages, something like asp.net master pages.
I googled it, some people say use templates http://java.sun.com/developer/technicalArticles/javaserverpages/jsp_templates that uses jstl tag library. It says to put a tag like this:
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='template' %>
but I get error (because jstl.jar and standard.jar are in WEB-INF/lib/ directory).
However some say jstl template have problems according to this
Struts OR Tiles OR ???...... JSP template solution
I would be glad to help me know the best way.
EDIT: What I need is to split page's layout into parts like content, header,... and set this parts in the page that uses the layout template, exactly like asp.net master page.