Meaningless Drivel is fun!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ServletContext in a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ServletContext in a JSP page" Watch "ServletContext in a JSP page" New topic

ServletContext in a JSP page

Giri Thava
Ranch Hand

Joined: Jun 22, 2006
Posts: 38
In the page 500(1st Edition), it says that a Tag File (a JSP file)
doesn't have access to a ServletContext, instead it has access to
a JspContext.

But the implicit object "application" is a ServletContext.
Isn't it? So a JSP page has access to a ServletContext.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575


in tag file(.tag extension)is nothing about jsp,so you can access application . i think your are talking about Tag handler .

Tag handler is having its own behaviour(it is like java file) using pageContext you can access application
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

In the page 500(1st Edition), it says that...

Which book?
Please QuoteYourSources.

And looks like you are confused with tag files and JSP.

|Asking Good Questions|
I agree. Here's the link:
subject: ServletContext in a JSP page
jQuery in Action, 3rd edition