• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletContext in a JSP page

 
Giri Thava
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the page 500(1st Edition), it says that...

Which book?
Please QuoteYourSources.

And looks like you are confused with tag files and JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic