When using nested " characters in java, use \" to represent "
i.e. Try
out.println("<td> <A HREF=\"http://localhost/adduser.jsp\">You have no
account here, please register one!</A></td>");
Also with JSPs there is no need for your to use out.println, infact I'd say
this is undesirable, you could simply end your script block, type in the
html and start a new script block
i.e.
... %> <td> <A HREF="http://localhost/adduser.jsp">You have no account
here, please register one!</A></td> <% ...
~Abhijit
At 09:51 PM 10/21/2001 -0700, Miao, Franco CAWS:EX wrote:
>Source code:
>
>----------------------------------------------------------------------------
>out.println("<td>"<A HREF="http://localhost/adduser.jsp">You have no account
>
> here, please register one!</A>"</td>");
>
>________________________________________________________________
>
>Error code:
>
>----------------------------------------------------------------------------
>--------------------------
>Unable to compile class for JSPNote: sun.tools.javac.Main has been
>deprecated.
>
> ')' expected.
> out.println(""You have no account
>
>
>________________________________________________________________
>
>What I missed? Pls advise, thanks!
>
>
>Franco
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com