• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query on Custom Tags

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
can custom tags use JSP implicit objects?
if i want to access request or session object, how can i do so from custom tags/tag files.
are JSP actions are valid in Custom tags/tag files.

Thanks and Regards,
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implicit objects are available to tag handlers through the pageContext object.

Tag Files as some defined:request,response,jspContext,session,application,out,config

Refer to the spec for more details on each of them.
 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Satou,
But what about JSTL and JSP action tags. are they allowed to use in Custom tags and Tag files



Thanks and Regards,
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes they are allowed. If they were not, that would make custom tags pretty useless
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic