Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Help on SimpleTag
Joined: Oct 07, 2002
Mar 30, 2005 08:13:00
Can we access request object in the doTag() of a class extending
This is in reference of HF final mock
, question no 25,page 811
The ans of which appears to be wrong.
The ans is as below
If the ans is correst, please explain.
Joined: May 11, 2004
Mar 30, 2005 08:17:00
I think we can access it but no idea how to access is exactly..
SCJP 1.4, SCWCD 1.4
Joined: Mar 09, 2005
Mar 30, 2005 08:33:00
Yes the HFS statement is correct.
For your information,
So the way given in book is correct to access request object.
BS<br />SCJP 1.4 88%<br />SCWCD 1.4 86%
Joined: Sep 21, 2004
Mar 30, 2005 09:02:00
check the API of
Context and Page Context
there is getRequest() method.
Answer is correct in HFS Book.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Help on SimpleTag
Trouble using pageContext in a simple tag handler
Can't cast JspContext to PageContext ???
Getting Request Object Inside SimpleTag
Session problem in custom tag
Custom tag handler, the usage of doTag() method.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015