How can I access the request object in class which extends SimpleTagSupport class?
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Steve McCann
Ranch Hand
Joined: Oct 20, 2004
Posts: 81
posted
0
There is a reference to the pageContext in the SimpleTagSupport class. You can use this to get to the Request by using the pageContext.getRequest() method.
Hope that helps Steve
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
I don't see it. I'm only able to get reference to jspContext through getJspContext but there are only methods for getting attributes.
Originally posted by Steve McCann: There is a reference to the pageContext in the SimpleTagSupport class.
That reference is only available in the "classic" tag handlers. It is no longer defined for SimpleTagSupport and its ilk.
Steve McCann
Ranch Hand
Joined: Oct 20, 2004
Posts: 81
posted
0
Hi Bear
Oops - you're right. Must have an out of date copy of the API docs. :roll: Looking at the (up-to-date) docs I see you can get the page context by calling the getJspContext() method in SimpleTagSupport.