GeekInterview.com
Series: Subject: Topic:
Question: 40 of 199

What is the difference between page = ... > and <%@ include file = ... >?.

Both the tag includes the information from one
page in another. The differences are as follows:
: This is like a function
call from one jsp to another jsp. It is executed ( the
included page is executed and the generated html
content is included in the content of calling jsp)
each time the client page is accessed by the client.
This approach is useful to for modularizing the web
application. If the included file changed then the new
content will be included in the output.

<%@ include file = ... >: In this case the content of
the included file is textually embedded in the page
that have <%@ include file=".."> directive. In this
case in the included file changes, the changed content
will not included in the output. This approach is used
when the code from one jsp file required to include in
multiple jsp files.
Asked by: abhinav_saraswat | Member Since Nov-2006 | Asked on: Dec 29th, 2006

View all questions by abhinav_saraswat

This Question is not yet answered!

Related Open Questions

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.