This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher to include static page  RSS feed

 
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
Boost this thread!