dev@jsftemplating.java.net

Re: JSFTemplating: Printing to server logs from handler?

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Fri, 26 Jan 2007 20:37:34 -0800

From handlers you can:

* Use System.out.println().  This should work for GlassFish / SJS AS.

* Use JSFTemplating's LogUtil class (see JavaDoc)

* Use Java SE standard logging API's (see java.util.logging.*)

* Use your preferred logging strategy  (i.e. commons logging)

From a .jsf file:

<!command
    println("Your message here, you may use #{el.expressions} too!");
/>

Where "command" is whatever event you are using.

Good luck!

Ken

Karam Singh Badesha wrote:
Hi,
I need to print some data in the handler to see where the stuff is going wrong. How do I do that? I tried putting in System.out.println() but it doesn't print anything in the server log files. What is the way to print to the server log from the handlers and also from the jsf file.

thanks
Karam