I'm quibbling here, but I imagine it's more efficient to use check on the
length of the StringBuffer than create a new String object. i.e.

if (errs.length() == 0)
    out.println("everythings fine");
else
    out.print("You have forgotten these fields " + errs);

- simon


Sam Rose wrote:

> Sorry, just figured it out, easy enough really, all I did was
> converted errs to a new string and checked if that had nothing in.
>

___________________________________________________________________________
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

Reply via email to