JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 204 Page Views: 

What is the difference between <%@ include ...> and <jsp:include> ?



Posted By: Avi Date: 5 November 2010 11:09:56 AM
 Answer:

“@ include” is static include; where the contents of the file will get included on Translation phase. So we cannot have a dynamic filename for this including. “” is dynamic include; where the included file will be processed as a separate file and the response will be included. So we can have a dynamic filename for this including and we can pass parameters to it.


Posted By: avibtech


Date: 5 November 2010 11:09:56 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 0Er08s
Related Questions
JSP : What is the use of setComment and getComment methods in Cookies?

What is the use of setComment and getComment methods in Cookies?

setComment is used to present a cookie to a user, the cookie's purpose will be described using this ....
Category: JSP Date: 11/8/2010 4:44:58 AM
JSP : How can you get a servlet context?

How can you get a servlet context?

By calling getServletConfig ().getServletContext (). By calling this.getServletContext () also we wi....
Category: JSP Date: 11/8/2010 1:50:57 AM
JSP : What are the use of setMaxAge() and getMaxAge() in Cookies?

What are the use of setMaxAge() and getMaxAge() in Cookies?

setMaxAge : Sets the maximum age of the cookie. The cookie will expire after that many seconds have ....
Category: JSP Date: 11/7/2010 11:29:58 PM
JSP : What is the difference between an applet and a servlet?

What is the difference between an applet and a servlet?

Applets run inside web browsers and must have graphical user interfaces. Servlets run inside a web s....
Category: JSP Date: 11/7/2010 10:56:58 PM
JSP : What is the Servlet Interface?

What is the Servlet Interface?

It is the central abstraction in the Servlet API that All servlets implement it, and that is directl....
Category: JSP Date: 11/7/2010 10:23:56 PM