GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  JSP
Go To First  |  Previous Question  |  Next Question 
 JSP  |  Question 10 of 184    Print  
The tag %@include file=”.........” % > helps in including the ______ file in the JSP page (Multiple choice)
Skill/Topic: Programming Constructs
A) readOnly
B) dynamic
C) static
D) None of the above



  
Total Answers and Comments: 7 Last Update: August 13, 2008   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: svkmrc1
 

The correct answer is C static.

the tag

%@include file=”.........” % is used to include already existing files at compile time. It wont allow to include dynamicfiles. 



Above answer was rated as good by the following members:
pragyanp
December 14, 2005 12:04:00   #1  
shiva        

RE: The tag %@include file=”.........” % > helps in in...
Static include
 
Is this answer useful? Yes | No
December 15, 2005 04:39:15   #2  
rangasuresh Member Since: December 2005   Contribution: 5    

RE: The tag %@include file=”.........” % > helps in in...

Answer is B. It is used to include file at runtime


 
Is this answer useful? Yes | No
December 26, 2005 00:39:45   #3  
svkmrc1 Member Since: December 2005   Contribution: 1    

RE: The tag %@include file=”.........” % > helps in in...

The correct answer is C static.

the tag

@include file ......... is used to include already existing files at compile time. It wont allow to include dynamicfiles.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 27, 2006 10:18:16   #4  
praveenlikki Member Since: February 2006   Contribution: 2    

RE: The tag %@include file=”.........” % > helps in in...
the thing is it can be used for both static and dynamic.the problem here is the included page can be html or jsp anything but it compiles only once when the jsp is translated to servlet.if the contents of the included jsp page changes the include tag dont show tht changes when it includes tht file in the current jsp page.this is not the case of including jsp page.its with all dynamic pages.
 
Is this answer useful? Yes | No
September 06, 2007 10:28:00   #5  
pdommara Member Since: September 2007   Contribution: 15    

RE: The tag %@include file=”.........” % > helps in in...
@include is page directive. see @ symbol

All page directives are static only. so why not < @include file "" >!!

 
Is this answer useful? Yes | No
August 12, 2008 12:05:31   #6  
snavanethakrshnan Member Since: August 2008   Contribution: 5    

RE: The tag %@include file=”.........” % > helps in including the ______ file in the JSP page (Multiple choice)
Static
 
Is this answer useful? Yes | No
August 13, 2008 00:37:28   #7  
Ashique Member Since: July 2007   Contribution: 5    

RE: The tag %@include file=”.........” % > helps in including the ______ file in the JSP page (Multiple choice)
The answer should be C) Static.

Because this include directive happens at TRANSLATION TIME (i.e. The very first time your jsp page is called the code gets written to a servlet). So later on when we make change to that including file wont have any effect on the JSP Page...

And the another way of include is the standard action which appears as same function as above but which included the file at RUNTIME...


Have a nice day guys :)

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape