JSP code comments?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shannon_Meisenheimer
Posted On:   Wednesday, December 13, 2006 03:13 PM

I'm trying to add comments within a code block, I've tried several different comment syntaxes, but keep receiving an error. I'm trying to add line comments to the following code block: welcomeImgSrc="/images/ci/logos/BbBlackboard_R_URL-f.gif" // You can add your own logo URL between the quotes welcomeImgAlt=" <%=welcomeImgAlt%>" // You can add your own logo alt tag between the quotes welcomeText="" // You can add your own welcome text between the quotes welcomeFontFace="Arial, Helvetica, sans-serif" welcomeFontSize="2" /> The //comments I added are causing an error. Thanks, Sha   More>>

I'm trying to add comments within a code block, I've tried several different comment syntaxes, but keep receiving an error.

I'm trying to add line comments to the following code block:

			


welcomeImgSrc="/images/ci/logos/BbBlackboard_R_URL-f.gif" // You can add your own logo URL between the quotes
welcomeImgAlt=" <%=welcomeImgAlt%>" // You can add your own logo alt tag between the quotes
welcomeText="" // You can add your own welcome text between the quotes
welcomeFontFace="Arial, Helvetica, sans-serif"
welcomeFontSize="2"
/>



The //comments I added are causing an error.

Thanks,
Shannon    <<Less

Re: JSP code comments?

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, December 17, 2006 02:51 PM

maybe put a ";" semicolon there to end the line of code, before the "//" comment?

Re: JSP code comments?

Posted By:   krunal_shimpi  
Posted On:   Wednesday, December 13, 2006 11:53 PM

Try Multi line commments /* ... */

OR TRY
<%-- a JSP comment --%>
About | Sitemap | Contact