on 11/1/00 1:52 PM, Craig R. McClanahan at [EMAIL PROTECTED]
wrote:
> "Harding, David" wrote:
>
>> odd, getServletContext() returns null for me
>
> The 99.9% cause of this one is having an init(ServletConfig config) method
> that
> fails to call super.init(config) somewhere.
>
> I use the
"Harding, David" wrote:
> odd, getServletContext() returns null for me
The 99.9% cause of this one is having an init(ServletConfig config) method that
fails to call super.init(config) somewhere.
I use the init() method that takes no arguments to avoid this kind of problem.
Craig McClanahan
on 11/1/00 1:31 PM, Bill Pfeiffer at [EMAIL PROTECTED] wrote:
> Are you using the request dispatcher to pass the servlet request to the jsp?
> I do this all the time, setAttribute in the servlet (controller), call
> forward() to forward the request to the jsp, and do request.getAttribute().
>
>
<[EMAIL PROTECTED]>
Sent: Wednesday, November 01, 2000 1:10 PM
Subject: How do you pass data from a servlet to a jsp page?
> is there some undocumented trick to this?
>
> i tried it and it does not work.
>
> i get Attribute does not have a value errors when i am sure
that
&
is there some undocumented trick to this?
i tried it and it does not work.
i get Attribute does not have a value errors when i am sure that
i called setAttribute in the servlet with a valid value.
why am i getting this error?
cheers,
david j harding