tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: custom class as resource
Date Mon, 31 Jan 2011 19:40:11 GMT
> From: alexis [mailto:alzrck@gmail.com] 
> Subject: Re: custom class as resource

>     LiveInfo li = (LiveInfo) sc.getAttribute("live");

> why im getting a null pointer on the sc.getAttribute line?

Because you never created an attribute named "live" in the ServletContext.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message