Difference between %@include and jsp:include
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pavan_kumar
Posted On:   Monday, November 13, 2006 01:40 AM

I know the difference between <%@include> and . But i dont exactly understand when to use
<%@include> and .Can any one show me one example where to use any of the includes and why?

Re: Difference between %@include and jsp:include

Posted By:   Anonymous  
Posted On:   Monday, November 27, 2006 01:58 AM

You can use a <%@include> when you wanna create a single servlet like when a JSP file is included in a parent JSP using this directive . It will create a single servlet in the name of the parent JSP. That means all your pages will be compiled together to a single class you will not find a .class file in the name of the included file . Next include is is generally used when you want to include an output of a JSP blindly :). Hope you are clear

-Shyam
About | Sitemap | Contact