File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes include directive question in java black belt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "include directive question in java black belt" Watch "include directive question in java black belt" New topic
Author

include directive question in java black belt

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
JSP file includes a JSP fragment. The JSP file is already compiled. The fragment was changed after the compilation.

Which type of include will not use the new version of the fragment?

1)<%@ include file="..." %>
2)<jsp:include>
3)It depends on the underlying JSP container.
4)It depends on the underlying operating system.

I thought the answer is 3.can any one explain
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
I think the answer is 1.May be because of its a static include.
I am not sure.


SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
no i have heard some containers check whether the included file has changed and add it,so I think it should be 3
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
Can anyone please help me out in this...I am totally confused
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
http://java.sun.com/products/jsp/syntax/2.0/syntaxref209.html#1003408

check this in the above link

Some of the behaviors of the include directive depend on the particular JSP container you are using, for example:

The included file might be open and available to all requests, or it might have security restrictions.
The JSP page might be recompiled if the included file changes.


so my guess was correct
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: include directive question in java black belt