it said "string not terminate...", or you can put the code in your computer test it if it return the same eroor message.
Thanks! Franco -----Original Message----- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: Re: out.println ??? You missed one of the slashes. Try this (you might have to make it one line since the email program will automatically break it apart): out.println("<td>You have no account here, <A HREF=\"http://localhost/adduser.jsp\">please register one!</A></td>"); (*Chris*) ----- Original Message ----- From: "Miao, Franco CAWS:EX" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 9:24 AM Subject: Re: [JSP-INTEREST] out.println ??? > You mean like this? I won't work. > > out.println("<td>You have no account here, <A > HREF=\"http://localhost/adduser.jsp">please register> one!</td>"); > > Franco > > > -----Original Message----- > From: Chris Pratt [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 22, 2001 9:22 AM > To: [EMAIL PROTECTED] > Subject: Re: out.println ??? > > > Try it all on one line. > (*Chris*) > > ----- Original Message ----- > From: "Miao, Franco CAWS:EX" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, October 21, 2001 10:43 PM > Subject: Re: [JSP-INTEREST] out.println ??? > > > > out.println("<td>You have no account here, <A > > HREF=\"http://localhost/adduser.jsp\"> please register > > one!</A></td>"); > > > > > > This won't work. Thanks for help! > > > > _________________________________________________________ > > > > error message: > > > > String not terminated at end of line. > > out.println("You have no account here, > > > > ----------------------------- > > ')' expected. > > please register one!"); > > > > > > > > > > Franco > > > > > > -----Original Message----- > > From: Abhijit Hiremagalur [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, October 21, 2001 10:20 PM > > To: [EMAIL PROTECTED] > > Subject: Re: out.println ??? > > > > > > 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 > > > > > =========================================================================== > > 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 > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.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 > > =========================================================================== > 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 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.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 =========================================================================== 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
