File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 60059
    
  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
forward() VS include()
what is the difference between a Directive Tag include and a ActionTag include
difference between JRE & JVM
include directive and include action
Include