remove the " before Selected
Rama > -----Original Message----- > From: A mailing list for discussion about Sun Microsystem's > Java Servlet API Technology. > [mailto:[EMAIL PROTECTED]] On Behalf Of Kwan, William > Sent: Monday, December 17, 2001 4:26 PM > To: [EMAIL PROTECTED] > Subject: printing html code from servlet > > > Hi everyone, > > I'm trying to create an html page from a servlet but I get > the following > error: > <identifier> expected. > > Here is some code: > > while (rsmodel.next()) > { > out.println("<option value='" + rsmodel.getString(2) + "'" > Selected>" + rsmode.getString(3)); > } > out.println("</select>"); > ^ error > out.println("</td>"); > ^ error > > thanks, > Will _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
