Sorry bout that... index.jsp location: ../WEB-INF <%@ page language="java" %> <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<tiles:insert name="rpclayout.default"> <tiles:put name="linktag" value="../html/indexlinkref.html" /> <tiles:put name="content" value="../html/intro.html"/> </tiles:insert> -----Original Message----- From: Holman, Cal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 10:52 AM To: 'Struts Users Mailing List' Subject: RE: Tiles setup help! You sent the RpcInterfaceLayout.jsp which is not the jsp being called. The index.jsp is inserting the definition named 'waitpage' which uses the WaitPageLayout.jsp for the template layout. That template only has access to linktag, header, footer, and content. So if you have a leftnav attribute in that jsp the jsp will fail. Cal http://www.calandva.com/ Last update 01/26/03 -----Original Message----- From: Jackson, Stephen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 10:34 To: 'Struts Users Mailing List' Subject: RE: Tiles setup help! Here is the structure and content: I am wondering where the directory calls are originating. As defined in tiles-defs. So are the calls coming from where tiles-defs.xml is located or ../WEB-INF so all the values would be something like ../html. The exception doesn't lead a very specific cause, I am still not getting anywhere. Thanks for your help, I hope you see something I don't. tiles-defs.xml location: WEB-INF/tiles-defs.xml <tiles-definitions> <!-- The default layout for the web interface --> <definition name="rpclayout.default" page="/layouts/RpcInterfaceLayout.jsp"> <put name="linktag" value="/html/indexlinkref.html" /> <put name="header" value="/html/header.html"/> <put name="leftnav" value="/jsp/LeftNav.jsp"/> <put name="footer" value="/html/footer.html"/> <put name="content" value="/html/intro.html"/> </definition> <!-- The wait page layout for requests --> <definition name="waitpage" page="/layouts/WaitPageLayout.jsp"> <put name="linktag" value="/html/indexlinkref.html" /> <put name="header" value="/html/header.html"/> <put name="footer" value="/html/footer.html"/> </definition> </tiles-definitions> ****************** index.jsp location ../WEB-INF <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='tiles' %> <tiles:insert name="waitpage"> <tiles:put name="content" value="../jsp/WaitPageContent.jsp"/> </tiles:insert> ******************** RpcInterfaceLayout.jsp location ../WEB-INF/layouts <%@ page language="java" %> <%@ taglib uri='/WEB-INF/struts-tiles.tld' prefix='tiles' %> <%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %> <HTML> <HEAD> <TITLE><bean:message key="title.block.processor"/></TITLE> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <tiles:insert attribute="linktag"/> </HEAD> <BODY bgcolor="#FFFFFF" text="#000000" link="#AEDC8F" vlink="#B7E098" alink="#000033" leftmargin="1" topmargin="0" marginwidth="1" marginheight="0"> <!-- start header --> <tiles:insert attribute="header"/> <TABLE border="0" width="99%" cellspacing="0" cellpadding="0"> <TR> <TD align="center" valign="top" width="144" bgcolor="#FFFFFF"> <!-- start leftnav table --> <tiles:insert attribute='leftnav'/> </TD> <TD align="left" valign="top" width="20" rowspan="2"> <html:img src="../images/trans_dot.gif" width="15" height="1"> </TD> <TD align="left" valign="top" width="20" rowspan="2"> <html:img src="../images/trans_dot.gif" width="15" height="1"> </TD> <TD align="left" valign="top" width="953" rowspan="2"> <p> <!--Start Content --> <tiles:insert attribute='content'/> </p> </TD> </TR> <TR valign='bottom'> <TD><tiles:insert attribute='footer'/></TD> </TR> </TABLE> </BODY> </HTML> -----Original Message----- From: Holman, Cal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 4:45 PM To: Struts Users Mailing List Subject: RE: Tiles setup help! What does the jsp look like? You definitions define the attributes - you initially set header, footer, and leftnav then add linktag and content in the insert. Are those attributes being used properly in the template? Are those the only attributes you reference? Cal http://www.calandva.com/ Last update 01/26/03 -----Original Message----- From: Jackson, Stephen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 14:57 To: 'Struts Users Mailing List' Subject: RE: Tiles setup help! Thanks for your reply. I changed the name(rpcinterface.default)...I am fishing for any hint as to what is happening. <tiles:insert name="rpclayout"> <tiles:put name="linktag" value="../html/indexlinkref.html" /> <tiles:put name="content" value="../html/intro.html"/> </tiles:insert> -----Original Message----- From: Max Kremer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 2:43 PM To: Struts Users Mailing List Subject: Re: Tiles setup help! How are you doing your tiles:insert ? ----- Original Message ----- From: "Jackson, Stephen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 1:42 PM Subject: Tiles setup help! > I am trying to get tiles set up and having lots of issues trying to do so. > (Struts 1.1b3 & tomcat 4.1.12) > > My tiles-defs.xml file looks like the following *************************** > <tiles-definitions> > <!-- The default layout for the web interface --> > <definition name="rpcinterface.default" > path="/layouts/RpcInterfaceLayout.jsp"> > <put name="header" value="/html/header.html"/> > <put name="leftnav" value="/jsp/LeftNav.jsp"/> > <put name="footer" value="/html/footer.html"/> > </definition> > > <!-- The wait page layout for requests --> > <definition name="wait.default" path="/layouts/WaitPageLayout.jsp"> > <put name="linktag" value="/html/indexlinkref.html" /> > <put name="header" value="/html/header.html"/> > <put name="footer" value="/html/footer.html"/> > </definition> > > </tiles-definitions> > > Tiles info in struts.config.xml ********************** > <!-- Tiles PlugIn definition--> > <plug-in className="org.apache.struts.tiles.TilesPlugin"> > <set-property property="definitions-config" > value="/WEB-INF/conf/tiles-defs.xml"/> > <set-property property="definitions-parser-validate" > value="true"/> > <set-property property="definitions-parser-details" > value="2"/> > <set-property property="definitions-debug" value="2"/> > </plug-in> > > I have a log4j.properties in WEB-INF/classes and it has the following info > log4j.category.org.apache.struts.tiles=DEBUG > > I am not getting any output from log4j. > What would the file be called and where would it reside if it was there? > > > ***** jsp error > java.lang.NullPointerException > at > org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:528) > at > org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:487 > ) > at > org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:445) > at > org.apache.jsp.index_jsp._jspx_meth_tiles_insert_0(index_jsp.java:78) > at org.apache.jsp.index_jsp._jspService(index_jsp.java:57) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 > 04) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain > > I was trying to get log4j to tell me something but I don't know what I am > doing wrong to get it set up. > > Any assistance would be great. > > Thanks in advance, > > Stephen Jackson > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Learn more about Paymentech's payment processing services at www.paymentech.com THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Learn more about Paymentech's payment processing services at www.paymentech.com THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]