This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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: 14685
    
  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: 2922
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
Doubt on HFSJ Final Mock Exam #22
HFSJ final mock exam question
Including static content
HFS Mack Exam Q22 - Page 772 - ResquestDispatcher - Is the answer correct?