Hi I need help logging my JSPs using Log4j. I can make it work for servlets
and my java beans. However when I try to do the same thing for JSPs it
throws errors like 'Statement required' for variables declared and 'Missing
}' errors for variables which do not really need them.

Here is a list of things that I have done...
1) Import the org.apache.log4j.* package in the 'page' tag.
2) Declare 'static Logger cat = Logger.getLogger(this)' as one of the
variables.
3) And try to call on the class whenever I want to log something...
'cat.warn("Blah!")'.

It does not quiet work the same way as servlets and Java beans.

Pls Help
Patrick

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to