• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PageContext.include.

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 17)
web page
Which statements are correct about the method PageContext.include?

1) There is no such method.
2) It has two paramters: request and response
3) It has one parameter of type String which is the relative URL of the page to include.
4) This method is appropiate to use within a Tag class.

Answer 3 and 4
I understand answer 3 is correct, But what i dont understand is option 4.
I read PageContext API and could not get any details on Tag and PageContext.
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reply please.
 
tanveer chowdry
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think since Classic Tags inherit a pageContext member variable from TagSupport ( In contrast to the getJspContext() method of simple tag ) it is appropriate to call that method. But since it does not specify whether classic or simple tag, i am not sure.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic