You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Glenn Nielsen <gl...@voyager.apg.more.net> on 2001/03/07 14:03:43 UTC
Re: Jasper JspRuntimeLibrary.java jspSetproperty with value="" does not
set the property
Which version of Tomcat are you refering to?
I recall the discussion, and that a solution was implemented
in at least Tomcat 3.2. I am using jsp:setPorperty with value=""
in some JSP pages running in Tomcat 3.2.
Regards,
Glenn
Burkard Endres wrote:
>
> Hi
>
> I've seen a Messagethread a while ago (dated 12.20.2000), where
> is mentioned that it is impossible to set an empty String
> in an property.
> I've had the same Problem and here I want to commit my solution.
> It migth be integrated in the class org.apache.jasper.JspRuntimeLibrary:
> here is what I changed:
>
> // original line:
> //if(value == null || (param != null && value.equals(""))) return;
> //replaced to:
> if(value == null || ((param != null && value.equals("")) &&
> (!type.equals(String.class)))) return;
>
> If I set an other property than a string property everithing stays
> unchanged.
>
> hope this is usefull for you
>
> kind regards
>
> Burkard Endres
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-dev-help@jakarta.apache.org
--
----------------------------------------------------------------------
Glenn Nielsen glenn@more.net | /* Spelin donut madder |
MOREnet System Programming | * if iz ina coment. |
Missouri Research and Education Network | */ |
----------------------------------------------------------------------