struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Canham" <n...@knowsense.co.uk>
Subject RE: <html:base /> tag causes NullpointerException in Tiles...
Date Thu, 01 May 2003 13:59:59 GMT
I was hoping someone could tell me!  I spent a long time trying to determine
where the NPE was coming from, and dsicovered the lack of pageContext. A
colleage had compared the pages that failed with others that worked and the
<html:base /> was the only difference.  Hence we removed it, and suddenly no
NPE from Tiles.

Looking at the source for <html:base > it obtains the HttpServletRequest
object from the pageContext, so there will be some connection.  I just can't
quite fathom it!

Neil

-----Original Message-----
From: David Graham [mailto:dgraham1980@hotmail.com]
Sent: 01 May 2003 14:51
To: struts-user@jakarta.apache.org
Subject: Re: <html:base /> tag causes NullpointerException in Tiles...


How is this related to <html:base>?

David



>From: "Neil Canham" <neil@knowsense.co.uk>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: <struts-user@jakarta.apache.org>
>Subject: <html:base /> tag causes NullpointerException in Tiles...
>Date: Thu, 1 May 2003 14:28:05 +0100
>
>Using Struts 1.1b2 with the Tiles plugin, running in both WebSphere v5 and
>TomCat 4.1
>
>The NullPointerexception is thrown by Tiles because it's pageContext
>appears
>to be null - here is the top of the stack trace:
>
>at
>org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:70
3
>)
>	at
>org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:50
8
>)
>	at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:460)
>	at org.apache.jsp._CmaLayout._jspService(_CmaLayout.java:152)
>
>And the offending line of processAttribute is
>
>     Object attrValue = getCurrentContext().getAttribute(name);
>
>I have debugged to this point and sure enough - getCurrentCOntext() returns
>null
>
>Should I report this as a bug?  Is it a bug in <html:base /> or in Tiles?
>
>Neil Canham
>KnowSense Limited
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message