Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Component Certification (OCEJWCD)
Help on SimpleTag
Saira Murty
Greenhorn
Posts: 13
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can we access request object in the doTag() of a class extending SimpleTagSupport??
This is in reference of HF final mock
test
, question no 25,page 811
The ans of which appears to be wrong.
The ans is as below
((PageContext)getJspContext()).getRequest()
If the ans is correst, please explain.
kapil munjal
Ranch Hand
Posts: 298
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I think we can access it but no idea how to access is exactly..
kapil
Kapil Munjal
SCJP 1.4, SCWCD 1.4
Bassam Zahid
Ranch Hand
Posts: 61
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes the HFS statement is correct.
For your information, PageContext extends JspContext.
So the way given in book is correct to access request object.
BS<br />SCJP 1.4 88%<br />SCWCD 1.4 86%
janne s
Ranch Hand
Posts: 81
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
HI!
check the API of
JSp
Context and Page Context
there is getRequest() method.
Answer is correct in HFS Book.
jaya
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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.
More...