HTML comments are not displayed by a user's browser, but they're available in the source view. JSP comments are removed before the source HTML is returned to the browser.
In many cases where we use comments in our JSPs, we prefer they not appear in the browser-viewable page source. Best case, they're confusing and useless to anybody who looks at them. Worst case, they actually reveal something about our implementation which we'd rather not reveal.
So without further ado:
<!-- HTML Comment -->
Simple JSP to perform JNDI lookups to see if the name you're querying returns the object you're expecting.
Copy this file out to an existing web application's WAR directory and visit http
Tested under WebSphere 6.1, but contains nothing specific to WebSphere. Works under WebSphere 8.5.5 Traditional and Liberty as well.
DougBreaux 270007SMYJ Visits (7415)
An oldie, but still useful from time to time.
Ever wonder which Jar or directory contains a class you're using in your JEE Web Application? Or which of multiple provider Jar files is the one being used? Or even whether or not a particular class is found at all?
No need to actually include it in your Web App permanently, but easy to deploy manually if you ever need it.