Many thanks, nils, I realize that:
getJspContext() returns in the case of a SimpleTag a JspContext-object, that in fact is a PageContext-object
I want to do a cast because I want to GET A "REQUEST" OBJECT.
Since getRequest() is only defined in PageContext but not in JspContext.
(I realize JspContext can get attributes in any scope)
JspContext jspCtx;
PageContext pageCtx;
Only pageCtx.getRequest() is work even jspCtx and pageCtx referred to the same object.
In addition, could you explain how to code to do this ?
So if your Simple tag handler needs access to PageContext-specific methods or fields, you'll have to cast it form a JspContext to the PageContext