There are a couple of fine spots to look for information on this: - Javadocs for commons-logging (jakarta.apache.org/commons/logging) Look at the javadoc for the top-level package - Tiles' documentation talks about it. http://struts.apache.org/userGuide/dev_tiles.html#setup (scroll down to the section about "Enabling your application for ..."
On Fri, 21 Jan 2005 16:16:44 -0500, Alex Kravets <[EMAIL PROTECTED]> wrote: > But how do I configure these, I've googled for it, but can't find any > specific details. > > Will Stranathan wrote: > > > You have to configure the underlying logging package - such as Log4j > > if you're using that or Java 1.4 logging if you're using that. > > > > w > > > > On Fri, 21 Jan 2005 16:02:39 -0500 > > Alex Kravets <[EMAIL PROTECTED]> wrote: > > > >> Couple of question about logging in Struts. > >> I included commons-logging.jar in my classpath, imported Log and > >> LogFactory in my class and have the following: > >> > >> public final class ExecuteQueryForm extends ActionForm { > >> private static Log log = > >> LogFactory.getLog(ExecuteQueryForm.class); > >> public void setSQLQuery(String query) { > >> log.debug("test"); > >> > >> try{ > >> this.SQLQuery = query; > >> } > >> catch(NumberFormatException nfe){ > >> ActionErrors errors = new ActionErrors(); > >> errors.add("password", new > >> ActionError("error.password.required")); > >> > >> } > >> > >> } > >> .... > >> .... > >> > >> Now, is this suppose to write test in my > >> /export/home/$TOMCAT/bin/Catalina.out file or somewhere else? > >> When I referenced commons-logging.jar in my classpath do I user log4j > >> by default? > >> Do I need to perform any other configurations to user logging in my > >> applications? > >> > >> While I am here, the errors that I send in try/catch block is this > >> the correct way to do it, because as of this implentation ActionForm > >> does not seem to catch NumberFormatException (I use SQLQuery as a > >> number for now...) > >> > >> thanks, > >> Alex -- Eddie Bush --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]