how to install tiles 2 in tomcat 6

I know how to use tiles, but do not know how to set it up in the tomcat webserver.  Could someone explain this to me or point me to a tutorial explaining this? I have downloaded the tiles-2.1.2-bin zipped file.

Thanks much in advance.
LVL 5
tbboyettAsked:
Who is Participating?
 
objectsCommented:
are you not using struts?
If not then I think you need to use: http://tiles.apache.org/

0
 
tbboyettAuthor Commented:
given this project is just for testing tiles, this is what i'm getting back when going to localhost:8080

any ideas why?
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 2
 
1: <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
2: <tiles:insertDefinition name="main.layout" />
 
 
Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
root cause
 
javax.servlet.ServletException: org.apache.tiles.jsp.taglib.TilesJspException: TilesContainer not initialized
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Open in new window

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
objectsCommented:
haven't used tiles for years but will do my best to help
whats your tiles definition look like?
0
 
tbboyettAuthor Commented:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
<tiles-definitions>
  <definition name="main.layout" template="/layouts/mainLayouts.jsp">
    <put-attribute name="title" value="Unified Audio Solutions" />
    <put-attribute name="header" value="/global/shared/header.jsp" />
    <put-attribute name="menu" value="/global/shared/leftMenu.jsp" />
    <put-attribute name="body" value="/global/shared/body.jsp" />
    <put-attribute name="footer" value="/global/shared/footer.jsp" />
  </definition>
</tiles-definitions>
0
 
tbboyettAuthor Commented:
i'll try that and get back shortly
0
 
tbboyettAuthor Commented:
got it, thanks to you.  

Thanks very much!
0
 
tbboyettAuthor Commented:
excellent!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.