Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag Files and jsp implicit objects

 
Sameer Raza Ali
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

HFSJ mentions - request and response implicit objects are available in tag files because even though it’s a .tag file it is going to end up as a part of a JSP.
if this reasoning is correct then why other JSP implicit objects - pageContext, config, application ect are unavailabe ?? after all its going to be a part of the jsp and will end up in the service method of the container generated servlet.

Thanks
Sameer
 
Ankit Garg
Sheriff
Posts: 9510
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sameer Raza Ali wrote: why other JSP implicit objects - pageContext, config, application ect are unavailabe ??

the config, application, session and out implicit objects are available in a tag file. Only instead of pageContext, there's jspContext...
 
Sameer Raza Ali
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there should be a correction in the book i guess but then again why is that pageContext is not available after all the underlying servlet will be setting this object
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic