Subject: Re: Removing Comments During Build
That's a good point, you won't be able to use JSP comments in static
files obviously... I've gotten spoiled in my work in that everything is
on the app server in an EAR lately, so I haven't had such concerns in
the past year or so.
I
That's a good point, you won't be able to use JSP comments in static
files obviously... I've gotten spoiled in my work in that everything is
on the app server in an EAR lately, so I haven't had such concerns in
the past year or so.
I don't have any other suggestions unfortunately for those cas
Thanks for your suggestion about using JSP comments for everything to hide
them from the browser. That will definitely help me with my app server
stuff.
What about the files being served by the web server? We have some static
html pages and JavaScript libraries there with comments we would a
If your pages are valid XML (e.g. XHTML) then you can use xmltask to bin
comments simply using:
http://www.oopsconsultancy.com/software/xmltask/
Brian
Tom Frantz wrote:
I want to be able to have comments in my code for JSP, HTML, JavaScript, ect., but I
don't want those comments to show
You could simply make all your comments JSP code... that won't get
rendered to the browser.
I actually do this in all my JSPs... For instance, I might have a
Javascript function like this:
<% // Add two numbers %>
function add(a, b) {
<% // Add a + b and put it in c %>
c = a + b;
I want to be able to have comments in my code for JSP, HTML, JavaScript, ect.,
but I don't want those comments to show up on the user's browser when they use
"View Source".
I recently found out (the hard way) that excessive use of comments ends up
slowing the response time for the pages. Our we