Sorry but I don't think that's right. Sure you wont see the output in the browser but the question asks if it will be visible in the source code (Edit menu > view source). It is. Just to make sure I tested it - without setting the content-type - and it is.
if you add the code <!-- Today is <%= new java.util.Date() %>.Hava a nice day --> to your jsp and run it. the code will be viewable if you right click on the page and do a view source. however, the viewer will not be able to see any output to the jsp page
Hi.. I tried the above in JRUN 4.0 which is JSP 1.2 compliant and the result was I could not see any output on the browser, but when I right clicked and viewed source I noticed that the JSP compiler had translated the Date object. No Source code was visible. Another strange thing was that I tried the same using the XML syntax <jsp:expression>... and it did not work in JRUN 4.0. Gave me an error message stating "The tag expression is not defined in the tag library...." Any clues? SR
Commentary From the Sidelines of history
Look ma! I'm selling my stuff!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop