Re: NPE on BodyTag / PropertyTag, Resin 2&3
Scott Farquhar <[email protected]>
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
Please create a war that demonstrates your problem, and let me know which URL to access. On Sun, Mar 21, 2004 at 07:49:06PM -0600, Matt Dowell wrote: > I don't think so, the file below is called sitemeshTest.jsp, the meta tag is > telling to to apply the main_decorator, which is defined in my decorators.xml > file here: > > <decorators defaultdir="/decorators"> > <decorator name="main_decorator" page="full_decorator.jsp"/> > </decorators> > > And the file full_decorator.jsp I included initially in the email. Am I missing > something? > > Thanks, > > Matt > > > Quoting Scott Farquhar <[email protected]>: > > > It looks like you are accessing the decorator directly? What URL are you > > accessing? > > > > On Sun, Mar 21, 2004 at 05:35:45PM -0600, Matt Dowell wrote: > > > Scott, > > > > > > Sure, Sitemesh v. 2.0.1, and below is the sampe file: > > > > > > <head> > > > <meta name="descTitle" content="This is the description title" /> > > > <meta name="descBody" content="This is the description body there has to > > > be a lot of text in this one, etc.. this is going in the SDFSTERGDSFSdf td > > tag > > > on > > > the right"> > > > <meta name="decorator" content="main_decorator"> > > > <title>This is the Title!</title> > > > </head> > > > <body> > > > This is the body > > > of the testx<Br><BR><BR> > > > <p> > > > yaddddddddddddd > > > test test test > > > </body> > > > </html> > > > > > > > > > Thanks, > > > > > > Matt > > > Quoting Scott Farquhar <[email protected]>: > > > > > > > Matt, > > > > > > > > Can you let me know the version of Sitemesh you are using, as well as a > > > > sample page that is being decorated. > > > > > > > > Cheers, > > > > Scott > > > > > > > > On Sun, Mar 21, 2004 at 11:44:21AM -0600, Matt Dowell wrote: > > > > > I am trying to apply a PageDecorator and I am getting a NPE on the > > > > BodyTags > > > > > (line 27) and PropertyTag (line 61) needless to say, my page > > > > (specifically, > > > > > those elements) are not decorating. Here is the information: > > > > > > > > > > Stack Trace: > > > > > > > > > > java.lang.NullPointerException > > > > > at > > > > > > > > > > > com.opensymphony.module.sitemesh.taglib.decorator.BodyTag.doEndTag(BodyTag.j > > > > > ava:27) > > > > > at > > > > _decorators._body_0inc__jsp._jspService(_body_0inc__jsp.java:35) > > > > > ... > > > > > java.lang.NullPointerException > > > > > at > > > > > > > > > > > com.opensymphony.module.sitemesh.taglib.decorator.PropertyTag.doEndTag(Prope > > > > > rtyTag.java:61) > > > > > at > > > > _decorators._body_0inc__jsp._jspService(_body_0inc__jsp.java:45) > > > > > ... > > > > > java.lang.NullPointerException > > > > > at > > > > > > > > > > > com.opensymphony.module.sitemesh.taglib.decorator.PropertyTag.doEndTag(Prope > > > > > rtyTag.java:61) > > > > > at > > > > _decorators._body_0inc__jsp._jspService(_body_0inc__jsp.java:48) > > > > > at com.caucho.jsp.JavaPage.service(JavaPage.java:75) > > > > > at com.caucho.jsp.Page.pageservice(Page.java:555) > > > > > > > > > > Here is the include in the decorator it is puking on: > > > > > > > > > > <!-- START BODY_INC.JSP --> > > > > > <%@ taglib uri="sitemesh-decorator" prefix="decorator" %> > > > > > <tr> > > > > > <td> > > > > > <decorator:body /> > > > > > </td> > > > > > <td align="left" valign="top"> > > > > > <table width="175" bgcolor="#ffffb9" border="0"> > > > > > <tr> > > > > > <td> > > > > > <P><STRONG><U><FONT face=Verdana size=1> > > > > > <decorator:getProperty > > > > property="meta.descTitle" > > > > > default="" /> > > > > > </FONT></U></STRONG> > > > > > <FONT face=Verdana size=1> > > > > > <decorator:getProperty > > > > property="meta.descBody" > > > > > default="" /> > > > > > </font> > > > > > </td> > > > > > .. > > > > > > > > > > > > > > > Here is decorators.xml > > > > > > > > > > <decorators defaultdir="/decorators"> > > > > > <decorator name="main_decorator" page="full_decorator.jsp"/> > > > > > </decorators> > > > > > > > > > > > > > > > Any ideas? I am also using WW2, I have tried it on Resin 2, and > > assuming > > > > it > > > > > was a PageContext / Servlet spec issue, I tried it on the latest > > version > > > > of > > > > > Resin 3.0.6 and got the same thing. > > > > > > > > > > Thanks for the help. > > > > > > > > > > Matt Dowell > > > > > www.logicd.com > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > > > > GenToo technologies. Learn everything from fundamentals to system > > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > > > _______________________________________________ > > > > > Opensymphony-sitemesh mailing list > > > > > [email protected] > > > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-sitemesh > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > > > GenToo technologies. Learn everything from fundamentals to system > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > > _______________________________________________ > > > > Opensymphony-sitemesh mailing list > > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-sitemesh > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > > GenToo technologies. Learn everything from fundamentals to system > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > _______________________________________________ > > > Opensymphony-sitemesh mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-sitemesh > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Opensymphony-sitemesh mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-sitemesh > > > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click