aspose file tools*
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
Author

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

Hi,

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)...so using pageContext you can access application
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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

Which book?
Please QuoteYourSources.

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


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletContext in a JSP page