Sorry about that.  So many files, I forgot to list the
plugin element in the struts-config file.  Here it is:

 <plug-in
className="org.apache.struts.tiles.TilesPlugin">
  <set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" /> 
  <set-property property="moduleAware" value="true" />

  <set-property property="definitions-parser-validate"
value="true" /> 
  </plug-in>

If anyone has any ideas as to my problem, please let 
me know.  

Thanks again,
Mike   
--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:

> Michael,
> 
> Can you show the Tiles plugIn from your
> struts-config.xml?  You don't
> mention it.  It is probably something like this:
> 
> <plug-in
> className="org.apache.struts.tiles.TilesPlugin">
>       <set-property property="moduleAware" value="true"/>
>       <set-property
> property="definitions-parser-validate"
> value="true"/>
>       <set-property property="definitions-config"
>               value="/WEB-INF/tiles-defs.xml"/>
> </plug-in>
> 
> Regards,
> David
> 
> -----Original Message-----
> From: Michael Klaene [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 7:22 PM
> To: [EMAIL PROTECTED]
> Subject: Frustrating Tiles error - Error -
> tag.getAsString
> 
> 
> 
> I can't seem to see the problem here.  I think it's
> simple but I've just
> been staring too long!  I keep getting a 'Error
> -tag.getAsString' error in
> my app.  I suspect it has nothing to do with the
> tiles defs but is happening
> before that.  But I can't figure it out.  Below is
> my info and the error
> message.  If anyone can help me out, I'd appreciate
> it!
> 
> Thanks in advance,
> Mike
> ----------------------
> **here's my index.jsp file: **
> 
> 
> <%@ page contentType="text/html" %>
> 
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jstl/core"; %>
> 
> <%@ taglib prefix="fmt"
> uri="http://java.sun.com/jstl/fmt"; %>
> 
> <%@ taglib prefix="tiles"
> uri="/WEB-INF/tlds/struts-tiles.tld" %>
> 
> <html><head><title><tiles:getAsString
> name="title"/></title></head>
> 
> <body>
> 
> <tiles:insert attribute="header"/>
> 
> <tiles:insert attribute="menu"/>
> 
> <tiles:insert attribute="body"/>
> 
> <tiles:insert attribute="footer"/>
> 
> </body>
> 
> </html>
> 
> 
> 
> **my tiles-defs file in WEB-INF : **
> 
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> 
> <!DOCTYPE tiles-definitions PUBLIC
> 
> "-//Apache Software Foundation//DTD Tiles
> Configuration 1.1//EN"
> 
>
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> <tiles-definitions>
> 
> <!--Main layout definition for pages.-->
> 
> <definition name="main.layout" path="/index.jsp">
> 
> <put name="title" value="Management system" />
> 
> <put name="header" value="/jsp/header.jsp" />
> 
> <put name="menu" value="" />
> 
> <put name="body" value="/jsp/login.jsp" />
> 
> <put name="footer" value="/jsp/footer.jsp" />
> 
> </definition>
> 
> <definition name="welcome.page"
> extends="main.layout">
> 
> <put name="body" value="/jsp/welcome.jsp" />
> 
> </definition>
> 
> <definition name="error.page" extends="main.layout">
> 
> <put name="title" value="System Error" />
> 
> <put name="body" value="/jsp/error.jsp" />
> 
> </definition>
> 
> </tiles-definitions>
> 
> 
> 
> **I have the following tld here : **
> 
> WEB-INF\tlds\struts-tiles.tld
> 
> **And the last element in my web.xml file: **
> 
> <taglib>
> 
>
<taglib-uri>/WEB-INF/tlds/struts-tiles.tld</taglib-uri>
> 
>
<taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location>
> 
> </taglib>
> 
> 
> 
> **Application's error message:
> 
> exception
> 
> javax.servlet.ServletException: Error -
> tag.getAsString : component context
> is not defined. Check tag syntax
> 
>
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:867)
> 
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:800)
> 
>
org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
> 
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> root cause
> 
> javax.servlet.jsp.JspException: Error -
> tag.getAsString : component context
> is not defined. Check tag syntax
> 
>
org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java
> :198)
> 
>
org.apache.jsp.index_jsp._jspx_meth_tiles_getAsString_0(index_jsp.java:95)
> 
>
org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
> 
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
> 
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> 
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> 
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------
> 
=== message truncated ===



                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to