File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP implicit objects in Simple Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "JSP implicit objects in Simple Tags" Watch "JSP implicit objects in Simple Tags" New topic
Author

JSP implicit objects in Simple Tags

KRK Gowda
Ranch Hand

Joined: Nov 02, 2004
Posts: 132
Hi All,
Custom tags can have access to JSP implicit objects using PageContext object.
this is ok with Classic tags as interface Tag do have method getPageContext to get object of PageContext.
but with Simple Tags, they use JspContext. and JspContext do not have access to JSP implicit objects.
does it mean that Simple tags cannot access JSP implicit objects. :roll:

Thanks and Regards,
Chethan Verma
Greenhorn

Joined: Oct 30, 2006
Posts: 18
Hi KRK,

We can use PageContext with SimpleTags.
We'll have to cast JspContext to PageContext.
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP implicit objects in Simple Tags
 
Similar Threads
JSP Implicit variables in tag files
Can't cast JspContext to PageContext ???
Accessing JspContext in tag files
Custom tags ch8 vs. EL functions ch9
Which implicit objects can be accessed by a simple tag handler?