Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
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.
Have you tried LearnNowOnline?
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