Well, if you changed the code and it works for you, it is fine.
Now, the main diference is that "" hides the error while "null" does not. I
mean "" is not equal to null.
Also, printing "null" follows better the java philosophy. Remember to make
the change each time you install a new version. But I
Hi Oren,
--- "Oren Deri, Nice-Eye" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> when printing in jsp some String that is null
> (String str = null;)
> the output html is the string "null".
> Look at the code of JspWriterImpl.print(String s)
>
> public void print(String s) throws IOException {
>
This is the expected operation of a PrintWriter. Read the JavaDoc for
java.io.PrinterWriter.print(String s).
print
public void print(String s)
Print a string. If the argument is null then the string "null" is printed.
Otherwise, the string's characters are converted into bytes according to the