Home > Posts > More efficient comments in JSP pages

More efficient comments in JSP pages

At JSP (Java Server Pages) better use <%– … –%> comment blocks instead of using a combination of <!– … –> and <% /* … */ %> ones. That way syntax highlighting of IDEs like NetBeans works better and also (and most importantly) the comments don’t go into the HTML page that is generated and sent to the end-user (which means faster processing and transport time, plus more security since end-users don’t see stuff they’re not supposed to)

Advertisements
Categories: Posts
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: