If you are looking to pull values using the <jsp:getProperty..> later, you can add a check in your bean accessor methods. e.g. public String getValue() { return (value == null)?"":value; }
This way you will not run into the NullPointerException when trying to access the null values. Hope this helps. -Chris On Thu, 12 Jun 2003 14:29:34 +0100, Tim Davidson <[EMAIL PROTECTED]> wrote: >Hi > > Using <jsp:setProperty...> is is possbible to set empty strings? and if so how? > > I realise the spec says: > "If the parameter has an empty or null value, the corresponding Bean property is > not set. " > > but can anyone reccommend a fix? > >thanks in advance. > > =========================================================================To > unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > >Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > 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 archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com