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

Showing Answers 1 - 13 of 13 Answers

shiva

  • Dec 14th, 2005
 

Static include

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

pdommara

  • Sep 6th, 2007
 

%@include  is page directive. see @ symbol

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

  Was this answer useful?  Yes

Ashique

  • Aug 13th, 2008
 

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 :)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions