After looking at the generated Java file, I find that the request object is
available because it's a parameter to _jspService(). I was attempting to
instantiate my objects via calls to request.getAttribute() at the point of
declaration, not in the first real code block in the page. Once I moved the
instancing to the first code block, everything was fine. (Some aspects of
JSP development are counter-intuitive to me, I'm afraid.)
Thanks for checking up on my query!
-----Original Message-----
From: rob [mailto:rob_mail@fastmail.fm]
Sent: Sunday, April 14, 2002 5:51 PM
To: Tomcat Users List
Subject: Re: Implicit objects in JSP pages
I believe that's correct how are you using the 'request' reference?
At 03:53 PM 4/12/2002 -0400, you wrote:
>According to what I've read, there should be a
>javax.servlet.http.HttpServletRequest instance by the name of "request"
>available to me in my JSP at compile time without my having to do something
>special to obtain it, yet Jasper is insisting that no such object is
>available. Have I skipped a step somewhere?
>
>jbm!
>
>--
>To unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
--
To unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
--
To unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
|