you have to escape double quotes (using backslash character) used in
out.println because
if you won't escape it, the compiler confuses between actual string( you
want to display)
and end of out.println...

Use this instead:

out.println("<INPUT type=\"Next\" name=\"bsubmit\" value=\"next\">");
out.println("<INPUT type=\"Previous\" name=\"bsubmit\"
value=\"previous\">");

it should work..

Nishit

-----Original Message-----
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: Servlet form question ?? Thanks


Could you please tell me what's wrong here :

C:\tomcat4\webapps\displayRecord\WEB-INF\classes>javac TempServlet.java
TempServlet.java:64: ')' expected
out.println("<INPUT type="Next" name="bsubmit" value="next">");
                          ^
TempServlet.java:65: ')' expected
out.println("<INPUT type="Previous" name="bsubmit" value="previous">");
                          ^
2 errors

Thanks
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to