wood burning stoves 2.0*
The moose likes JSP and the fly likes what is the difference between  include taglib and RequestDispatcher.include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

what is the difference between include taglib and RequestDispatcher.include

Abdul Aatif
Greenhorn

Joined: Feb 08, 2012
Posts: 23
what is the difference between
<%@ include file="index.jsp" %>

and

RequestDispatcher rd = request.getRequestDispatcher("index.jsp");
rd.include(request,response);

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60737
    
  65

Answered in the JspFaq. Please always check the FAQ before posting. Thanks.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is the difference between include taglib and RequestDispatcher.include
 
Similar Threads
what is the difference between a Directive Tag include and a ActionTag include
Include
include directive and include action
forward() VS include()
difference between JRE & JVM