+AD4- Anyway, if you create a new bean for each request (as in your example),
+AD4- you just have to be aware of this and initialize the properties to
+AD4- the +ACI-unset+ACI- value you want (e.g. an empty string for a String property).
+AD4- Thus, if the setter method is not called by +ADw-jsp:setProperty+AD4-, your
+AD4- getter method still returns the default value you want.

Isn't it possible to just use another JSP tag? I think there should be some
tag library, that behaves like the +ADw-jsp:setProperty /+AD4-, but treats empty
strings as values and forces properties to be set.

I wonder if there is special tag like:

+ADw-betterjsp:setProperty name+AD0AIg-myBean+ACI- property+AD0AIgAqACI- /+AD4-

This special tag would take every property from the request and call the
setter on each property. Values could be then deleted in the form, not only
changed to non-empty strings.

Dont you know of any tag library, that addresses this issue?

Petr Tomasek

===========================================================================
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

Reply via email to