You dont write like
 <%-- This comment will not be visible in the page source --%>
its used in html like
 <!-- This comment will not be visible in the page source -->
and if you don't want to be visible use the standard way.
 <% //This comment will not be visible in the page source --%>
or
 <% /* This comment will not be visible in the page source*/ %>
which will not be seen on the page.





> ----------
> From:         Allamraju Kumarswamy[SMTP:[EMAIL PROTECTED]]
> Reply To:     Allamraju Kumarswamy
> Sent:         Monday, July 12, 1999 10:47 PM
> To:   [EMAIL PROTECTED]
> Subject:      JSP 1.0 [errors with page comment tag]
>
> Guys--
>
> Windows NT 4.0 sp-3
> JWS 2.0 beta 2,
>
> I'm trying to insert jsp comment tags to document the jsp page .
>
> here is the code.
>      <html>
>      <head><title>A Comment Test</title></head>
>      <body>
>      <h2>A Test of Comments</h2>
>      <%@ page language="java" %>
>      <%-- This comment will not be visible in the page source --%>
>      </body>
>      </html>
>
> On the browser i'm getting the following error message
>
> Error getting compiled page
>
> D:\JavaWebServer2.0\bin\..\tmpdir\default\pagecompile\jsp\_pc.java:33: ';'
> expected.
>             -- This comment will not be visible in the page source --
>                            ^
> 1 error
>
> Can anybody help me out what's wrong in the above code.
>
> Thx
> Kumar
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to