On Thu, 2004-11-25 at 14:03 +0000, Douglas Soares de Andrade wrote:
> Why PSP/Servlets won't have a print statement ? Well, i think print
> statement can be a alias to a res.write() statement.
> Sorry if my idea is a newbie like, but i think it could be cool if it would
> be possible.
>From a servlet (so I guess from PSP, too), using "print" will cause the
output to go to the console (or log file, depending on where you redirect
it), and not to the generated webpage as a PHP programmer would expect.
This was a change for me when I started using Webware, but now I love it because
I can add in debugging output using print, and it doesn't affect the page
output. It's invisible to people using the site, so I can actually leave
useful debugging statements in the code.