• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher to include static page

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain the answer for the Mock Question 22 of HFSJ Final Mock Exam?

Can't we use Request Dispcatcher to include static content in a JSP? Why 'D' is not one of the right answers.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can use RequestDispatcher to include static contents but idealy RequestDispatcher are not used to include static contents.it is used to include dynamic contents.
For static contents it is better to use
<%@ include file="file.html" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic