Re: ResponseUtils.write and null properties

2003-08-07 Thread vellosa
Yeah, we found this too. When using WebLogic 6.1 our reset functions set all values to 
null, which then left them blank on the JSP. When upgrading to WebLogic 7.0 then 
suddenly were all output as "null" and not a blank field. Upon investigation this is 
the way it should be done and was a bug (well not written ot the spec) in WebLogic 
6.1. There is a flag in 7.0 which can be set to toggle this behaviour.

Hope this helps
IV


> 
> --- Brian Lee <[EMAIL PROTECTED]> wrote:
>
> Is the intended behavior of ResponseUtils.write to write out
> the String "null" to the print writer if the property supplied
> is null?
> 
> It seems that Weblogic's JspWriter will not write out "null" 
> if null is provided, but sun's j2ee reference server will.
> 
> BAL
 


http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placement=home_multi.gif&site=amazon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ResponseUtils.write and null properties

2003-08-04 Thread Kris Schneider
Okay, actual facts for when you write that bug report against WLS:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/jsp/JspWriter.html#print(java.lang.Object)

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/jsp/JspWriter.html#print(java.lang.String)

http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html#valueOf(java.lang.Object)

Quoting Kris Schneider <[EMAIL PROTECTED]>:

> AFAICT, the correct behavior is to output "null". This probably has nothing
> to
> do with Struts but with the container's implementation of JspWriter.
> 
> Quoting Brian Lee <[EMAIL PROTECTED]>:
> 
> > Is the intended behavior of ResponseUtils.write to write out the String 
> > "null" to the print writer if the property supplied is null?
> > 
> > It seems that Weblogic's JspWriter will not write out "null" if null is 
> > provided, but sun's j2ee reference server will.
> > 
> > BAL
> 
> -- 
> Kris Schneider 
> D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ResponseUtils.write and null properties

2003-08-04 Thread David Graham
--- Brian Lee <[EMAIL PROTECTED]> wrote:
> Is the intended behavior of ResponseUtils.write to write out the String 
> "null" to the print writer if the property supplied is null?

Struts doesn't make that decision; it's up to the writer implementation. 
It seems like standard Java behavior to write "null" when you try to
output a String variable that's set to null.  I haven't used WebLogic but
Tomcat prints "null" and I believe a System.out.println(null) will also
print "null".

David

> 
> It seems that Weblogic's JspWriter will not write out "null" if null is 
> provided, but sun's j2ee reference server will.
> 
> BAL
> 
> _
> MSN 8 with e-mail virus protection service: 2 months FREE*  
> http://join.msn.com/?page=features/virus
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ResponseUtils.write and null properties

2003-08-04 Thread Kris Schneider
AFAICT, the correct behavior is to output "null". This probably has nothing to
do with Struts but with the container's implementation of JspWriter.

Quoting Brian Lee <[EMAIL PROTECTED]>:

> Is the intended behavior of ResponseUtils.write to write out the String 
> "null" to the print writer if the property supplied is null?
> 
> It seems that Weblogic's JspWriter will not write out "null" if null is 
> provided, but sun's j2ee reference server will.
> 
> BAL

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ResponseUtils.write and null properties

2003-08-04 Thread Brian Lee
Is the intended behavior of ResponseUtils.write to write out the String 
"null" to the print writer if the property supplied is null?

It seems that Weblogic's JspWriter will not write out "null" if null is 
provided, but sun's j2ee reference server will.

BAL

_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]