wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes could be that include directive modify output? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "could be that include directive modify output?" Watch "could be that include directive modify output?" New topic
Author

could be that include directive modify output?

Perla Ricardez
Greenhorn

Joined: Jan 07, 2005
Posts: 5
hi all,

i found in a free simulator this statement regarding SCWCD exam:

"Directives do not produce any output
into the current output stream "

but, i believe that include directive could modify
the output stream, what do you think about?
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
I think it's a horrible question --- why would you put anything in a JSP file if it didn't have some relation to the output ??? Technically the include directive just does a static include of some snippit into your JSP file, but since it's static and output streams are only modified at runtime, I suppose, technically speaking, it doesn't modify the output, since there's no output at compile-time.

Blah. Just chalk it up as a stupid question and move on. You won't find questions like this on the exam. Just know what the directives are, why you use them, what the results are, and that's it.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Perla Ricardez
Greenhorn

Joined: Jan 07, 2005
Posts: 5
thanks for your comments, it's helpful,

I had not considered a reasoning as you have done

greetings
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: could be that include directive modify output?
 
Similar Threads
Can anybody give me some idea?
include page directives
Directives cannot produce output ?
j2eecertificate question (include directive)
Directives do not produce any output to the current output stream