"Boulatian, Misak" wrote:

> Hi Craig,
>
> It seems like not all servlet engines can handle setting null attributes. Do
> you think this is a bug or oversight with struts? If yes, when can we expect
> a fix for it. It will be very hard to push servlet engines for this type of
> a fix. Please let me know. To go arount this problem I used the Wong's
> suggestion (by the way, Wong, thanks for the patch).
>

Because it is not defined in the servlet spec, you cannot count on your servlet
container allowing null attribute values.  (For example, Tomcat 3.x uses a
Hashtable underneath, which will not allow nulls).  The convention I normally
use is to just remove the attribute instead of trying to set it to null.

I will fix the case described here -- I also want to clean it up a little and
use
constant strings to identify the request attributes being transported.

>
> Thanks,
> Misak
>

Craig


Reply via email to