Example & Tutorial understanding programming in easy ways.

How do I use comments within a JSP page?

You can use “JSP-style” comments to selectively block out code while debugging or simply to comment your scriptlets. JSP comments are not visible at the client.

For example:

<%-- the scriptlet is now commented out

<%

out.println("Hello java");

%>

--%>

You can also use HTML-style comments anywhere within your JSP page. These comments are visible at the client. For example:

<!-- (c) 2004 -->

Of course, you can also use comments supported by your JSP scripting language within your scriptlets. For example, assuming Java is the scripting language, you can have:

<%

//some comment

/**

yet another comment

**/

%>

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!