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 Doubt in Final Mock Exam:HFSJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in Final Mock Exam:HFSJ" Watch "Doubt in Final Mock Exam:HFSJ" New topic
Author

Doubt in Final Mock Exam:HFSJ

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
From HFSJ: Final Mock Exam: Ques No:22 Page No:810


I thought of only A. But the answer given as A and C.
Actually <jsp:forward pade="/footer.html"/> is used to include the dynamic content only.. then how..?

My general doubt:
In which case option D will be true?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16


I thought of only A. But the answer given as A and C.
Actually <jsp:forward pade="/footer.html"/> is used to include the dynamic content only.. then how..?

A and C, not B. jsp:include allows to include both static and dynamic content.

About D, remember that the question is about JSP. D is not even scriptlet.


[My Blog]
All roads lead to JavaRanch
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3203
    
    2
There are two things:
1. Including dynamic content (i.e. by executing some code at the server side to generate new content as opposed to static content such as pure HTML pages).

JSP constructs such as scriptlets are used to generate dynamic content regardless of whether they are included statically or dynamically. A jsp page, whether included statically or dynamically can generate dynamic content. An HTML file, whether included statically or dynamically, can provide only static content.

2. Including content dynamically (i.e. at request time as opposed to statically i.e. compile time).
jsp:include (and jsp:forward) action is used to include content dynamically regardless of whether the content is static or dynamic.


If you want to include static content (which is what the question is asking), you can include it statically (option a) as well as dynamically (which the question has not specified) (option c).

I hope I didn't confuse you


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in Final Mock Exam:HFSJ
 
Similar Threads
including static content, mock exam question
HFSJ final mock exam question
HFS Mack Exam Q22 - Page 772 - ResquestDispatcher - Is the answer correct?
Doubt on HFSJ Final Mock Exam #22
Including static content