Exactly, nesting sessions should be pointless. There should be only one
global httpclient when you use http:session.
dion gillard (JIRA) wrote:
[ http://issues.apache.org/jira/browse/JELLY-207?page=comments#action_61880 ]
dion gillard commented on JELLY-207:
------------------------------------
I'm not sure this is the right solution. All the get tags would then share the
same session regardless of their nesting.
http:get causes a null pointer exception
----------------------------------------
Key: JELLY-207
URL: http://issues.apache.org/jira/browse/JELLY-207
Project: jelly
Type: Bug
Components: taglib.http
Environment: define:taglib
Reporter: Frank Cornelis
Attachments: SessionTag-static-httpclient.patch
http:get causes a null pointer exception when used within define:tag with a surrounding http:session
When a http:get that lives inside define:tag find a parent http:session, which was defined inside define:taglib, then http:get creates a new SessionTag object, which an unset httpclient, and tries to use it. This cause a null pointer exception. Making the _httpClient static inside the SessionTag solves to problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]