Hmm. I
try to avoid 'method repositories' where possible. I also try to put as little
Java code in a JSP as possible. That way, I find that I don't often have much of
interest to log from a JSP. Anyway, here are a couple
suggestions.
First,
why not have a look at the Jakarta Log Tag Library. It may be just what you
need.
If you
want to develop your own class, you might consider designing a JavaBean that you
could instantiate with page scope using the JSP useBean tag and use bean set
tags to set its properties -- like the name for the Category. Your bean would
have logging methods that duplicate those of Category. It could retrieve
the Category instance based on its name property and delegate calls to the
Category object.
Best
regards,
Jim
Cakalic
|
- Log4J in JSP?? Sumit Mishra
- RE: Log4J in JSP?? Seemantini Godbole
- RE: Log4J in JSP?? Cakalic, James P.
- RE: Log4J in JSP?? Bharat Reddy
- RE: Log4J in JSP?? Seemantini Godbole
- RE: Log4J in JSP?? Bharat Reddy
- FW: Log4J in JSP?? Sumit Mishra
- Re: FW: Log4J in JSP?? Frans Thamura