Re: Logging in struts.

2003-06-18 Thread Kwok Peng Tuck
Simon, perform is deprecated.  Thus if you compile it as it is you will 
get warnings about it. It'll still work though.
I'd use execute() instead.  See org.apache.struts.action.Action  .

Simon Kelly wrote:

Actually, I have a confession to make.

I was nothing to do with the logging in the end. I was porting everything
over from an earlier struts, to 1.0.2, and was using execute() instead of
perform(). Changed them all over and it now works fine.
I'm just gonna nip out the back and shoot myself! Please excuse the noise.

Sim"BANG"

- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 1:09 PM
Subject: Re: Logging in struts.
 

sounds like your logging configuration file doesn't contain what you
think it does or is not being found at start-up.
Simon Kelly wrote:
   

Done that.

It's my usual option for loggin in struts. But even that seems to have
failed me :-(
- Original Message -
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 12:24 PM
Subject: Re: Logging in struts.


 

Hmm very strange since it doesn't log properly.
Looks a bit different then how it's done in the struts examples.
I see that they do this,

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
..
..
public final class EditSubscriptionAction extends Action {
private Log log =
  LogFactory.getLog("org.apache.struts.webapp.Example");
..
...
 public ActionForward execute(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  throws Exception {
 ...
 
  if (log.isDebugEnabled()) {
  log.debug("EditSubscriptionAction:  Processing " + action +
" action");
  }
So it looks like they get a Log object from the LogFactory  and just log
to it.


   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Actually, I have a confession to make.

I was nothing to do with the logging in the end. I was porting everything
over from an earlier struts, to 1.0.2, and was using execute() instead of
perform(). Changed them all over and it now works fine.

I'm just gonna nip out the back and shoot myself! Please excuse the noise.

Sim"BANG"


- Original Message -
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 1:09 PM
Subject: Re: Logging in struts.


> sounds like your logging configuration file doesn't contain what you
> think it does or is not being found at start-up.
>
> Simon Kelly wrote:
> > Done that.
> >
> > It's my usual option for loggin in struts. But even that seems to have
> > failed me :-(
> >
> >
> > - Original Message -
> > From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 18, 2003 12:24 PM
> > Subject: Re: Logging in struts.
> >
> >
> >
> >>Hmm very strange since it doesn't log properly.
> >>Looks a bit different then how it's done in the struts examples.
> >>
> >>I see that they do this,
> >>
> >>
> >>import org.apache.commons.logging.Log;
> >>import org.apache.commons.logging.LogFactory;
> >>
> >>...
> >>..
> >>..
> >>public final class EditSubscriptionAction extends Action {
> >>
> >> private Log log =
> >>LogFactory.getLog("org.apache.struts.webapp.Example");
> >>
> >>..
> >>...
> >>   public ActionForward execute(ActionMapping mapping,
> >> ActionForm form,
> >> HttpServletRequest request,
> >> HttpServletResponse response)
> >>throws Exception {
> >>   ...
> >>   
> >>if (log.isDebugEnabled()) {
> >>log.debug("EditSubscriptionAction:  Processing " + action +
> >>  " action");
> >>}
> >>
> >>
> >>So it looks like they get a Log object from the LogFactory  and just log
> >>to it.
> >>
> >>
> >>
> >>>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging in struts.

2003-06-18 Thread Adam Hardy
sounds like your logging configuration file doesn't contain what you 
think it does or is not being found at start-up.

Simon Kelly wrote:
Done that.

It's my usual option for loggin in struts. But even that seems to have
failed me :-(
- Original Message -
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 12:24 PM
Subject: Re: Logging in struts.


Hmm very strange since it doesn't log properly.
Looks a bit different then how it's done in the struts examples.
I see that they do this,

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
..
..
public final class EditSubscriptionAction extends Action {
private Log log =
   LogFactory.getLog("org.apache.struts.webapp.Example");
..
...
  public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
   throws Exception {
  ...
  
   if (log.isDebugEnabled()) {
   log.debug("EditSubscriptionAction:  Processing " + action +
 " action");
   }
So it looks like they get a Log object from the LogFactory  and just log
to it.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Done that.

It's my usual option for loggin in struts. But even that seems to have
failed me :-(


- Original Message -
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 12:24 PM
Subject: Re: Logging in struts.


> Hmm very strange since it doesn't log properly.
> Looks a bit different then how it's done in the struts examples.
>
> I see that they do this,
>
>
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
>
> ...
> ..
> ..
> public final class EditSubscriptionAction extends Action {
>
>  private Log log =
> LogFactory.getLog("org.apache.struts.webapp.Example");
>
> ..
> ...
>public ActionForward execute(ActionMapping mapping,
>  ActionForm form,
>  HttpServletRequest request,
>  HttpServletResponse response)
> throws Exception {
>...
>
> if (log.isDebugEnabled()) {
> log.debug("EditSubscriptionAction:  Processing " + action +
>   " action");
> }
>
>
> So it looks like they get a Log object from the LogFactory  and just log
> to it.
>
>
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging in struts.

2003-06-18 Thread Kwok Peng Tuck
Hmm very strange since it doesn't log properly.
Looks a bit different then how it's done in the struts examples.
I see that they do this,

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
..
..
public final class EditSubscriptionAction extends Action {
private Log log =
   LogFactory.getLog("org.apache.struts.webapp.Example");
..
...
  public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
   throws Exception {
  ...
  
   if (log.isDebugEnabled()) {
   log.debug("EditSubscriptionAction:  Processing " + action +
 " action");
   }
So it looks like they get a Log object from the LogFactory  and just log 
to it.


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Logging in struts.

2003-06-18 Thread Filip Polsakiewicz


> -Original Message-
> From: Simon Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 18, 2003 11:36 AM
> To: Struts Users Mailing List
> Subject: Re: Logging in struts.
>
>
> Thanks Filip (and hi Kwok, yep found the file. See below)
>
> I tested the servlet context logging, and found the file it
> writes too, and
> found only these lines at the ned of the file when it runs the actioin
> class.
>
> 2003-06-18 11:26:09 action: Processing a GET for /select
> 2003-06-18 11:26:09 action:  Looking for Action instance for class
> org.fzk.katrin.struts.action.SignalSelectAction
> 2003-06-18 11:26:09 action:   Double checking for Action instance already
> there
> 2003-06-18 11:26:09 action:   Creating new Action instance
>
> The first thing SignalSelectAction does is the following (which in theory
> should write to this very same file):
>
> ServletContext context = getServlet().getServletContext();
> context.log("Made it this far in " + THIS_CLASS);
>
> Which, of course, it doesn't do.
>
> I'm gonna give the log4j package a go in a sec, but if anyone knows what
> might be happening, I'll take any leads I can get :-(
>
> Cheers
>
> Simon
>
> PS
> I'm just checkin where the K-W-Platz is, cause my memory is shot.  I'm WAY
> up the raod at the FZK
>

It's pretty close to Technologiefabrik if you know where this is. And i
think FZI is also here somewhere

>
> - Original Message -
> From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 18, 2003 11:23 AM
> Subject: RE: Logging in struts.
>
>
> > > -Original Message-
> > > From: Simon Kelly [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 18, 2003 11:02 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Logging in struts.
> > >
> > >
> > > Hi Gemes and Filip,
> > >
> > > Thanks for the answers.  I'm using commons logging (and I'm just
> > > checkin my
> > > copy of Prog' J.Struts), but println() isn't even dumping out
> to screen,
> > > even though  when I go throught the page it runs the x.do class!
> >
> > You should make sure (probably in yout tomcat config) that stdout and
> stderr
> > are not redirected to a file or something)
> > When I use sys.out.println() in my apps it always prints to my Tomcat
> > window.
> >
> > >
> > > Simon
> > >
> > > PS
> > > Filip, where are you in KA?
> >
> > Near Karl-Wilhelm-Platz
> >
> > Filip
> >
> > >
> > > - Original Message -
> > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 18, 2003 10:50 AM
> > > Subject: RE: Logging in struts.
> > >
> > >
> > > > Hi Simon,
> > > >
> > > > there is a lot of info on that question in O'Reilly Programming
> Jakarta
> > > > Struts. The tell you how to use Commons Logging or
> > > > Log4J within your struts apps.
> > > > And: whatever you print to stdout or stderr appears in your
> > > tomcat window
> > > > anyway (at least it should)
> > > >
> > > > Greetz from Karlsruhe too,
> > > >
> > > > Filip
> > > >
> > > > > -Original Message-
> > > > > From: Simon Kelly [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, June 18, 2003 10:24 AM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Logging in struts.
> > > > >
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I didn't really want to post such a basic question, but I
> have tried
> a
> > > > > couple of possible solutions and have had zero luck.  So,
> > > > >
> > > > > How do you log messages using the Struts logger, so that they
> > > > > will print to
> > > > > screen? I.E the window that tomcat is running in, in my case.
> > > > >
> > > > > Thanks, cheers etc etc
> > > > >
> > > > > Simon
> > > > >
> > > > > "I have often wondered how it is that every man loves himself
> > > > > more than all
> > > 

Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Thanks Filip (and hi Kwok, yep found the file. See below)

I tested the servlet context logging, and found the file it writes too, and
found only these lines at the ned of the file when it runs the actioin
class.

2003-06-18 11:26:09 action: Processing a GET for /select
2003-06-18 11:26:09 action:  Looking for Action instance for class
org.fzk.katrin.struts.action.SignalSelectAction
2003-06-18 11:26:09 action:   Double checking for Action instance already
there
2003-06-18 11:26:09 action:   Creating new Action instance

The first thing SignalSelectAction does is the following (which in theory
should write to this very same file):

ServletContext context = getServlet().getServletContext();
context.log("Made it this far in " + THIS_CLASS);

Which, of course, it doesn't do.

I'm gonna give the log4j package a go in a sec, but if anyone knows what
might be happening, I'll take any leads I can get :-(

Cheers

Simon

PS
I'm just checkin where the K-W-Platz is, cause my memory is shot.  I'm WAY
up the raod at the FZK


- Original Message -
From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 11:23 AM
Subject: RE: Logging in struts.


> > -Original Message-
> > From: Simon Kelly [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 18, 2003 11:02 AM
> > To: Struts Users Mailing List
> > Subject: Re: Logging in struts.
> >
> >
> > Hi Gemes and Filip,
> >
> > Thanks for the answers.  I'm using commons logging (and I'm just
> > checkin my
> > copy of Prog' J.Struts), but println() isn't even dumping out to screen,
> > even though  when I go throught the page it runs the x.do class!
>
> You should make sure (probably in yout tomcat config) that stdout and
stderr
> are not redirected to a file or something)
> When I use sys.out.println() in my apps it always prints to my Tomcat
> window.
>
> >
> > Simon
> >
> > PS
> > Filip, where are you in KA?
>
> Near Karl-Wilhelm-Platz
>
> Filip
>
> >
> > - Original Message -
> > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 18, 2003 10:50 AM
> > Subject: RE: Logging in struts.
> >
> >
> > > Hi Simon,
> > >
> > > there is a lot of info on that question in O'Reilly Programming
Jakarta
> > > Struts. The tell you how to use Commons Logging or
> > > Log4J within your struts apps.
> > > And: whatever you print to stdout or stderr appears in your
> > tomcat window
> > > anyway (at least it should)
> > >
> > > Greetz from Karlsruhe too,
> > >
> > > Filip
> > >
> > > > -Original Message-
> > > > From: Simon Kelly [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, June 18, 2003 10:24 AM
> > > > To: Struts Users Mailing List
> > > > Subject: Logging in struts.
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > I didn't really want to post such a basic question, but I have tried
a
> > > > couple of possible solutions and have had zero luck.  So,
> > > >
> > > > How do you log messages using the Struts logger, so that they
> > > > will print to
> > > > screen? I.E the window that tomcat is running in, in my case.
> > > >
> > > > Thanks, cheers etc etc
> > > >
> > > > Simon
> > > >
> > > > "I have often wondered how it is that every man loves himself
> > > > more than all
> > > > the rest of men, but yet sets less value on his own opinion of
> > > > himself than
> > > > on the opinion of others." -- Georg Christoph Lichtenberg
> > > >
> > > > Institut fuer
> > > > Prozessdatenverarbeitung
> > > > und Elektronik,
> > > > Forschungszentrum Karlsruhe GmbH,
> > > > Postfach 3640,
> > > > D-76021 Karlsruhe,
> > > > Germany.
> > > >
> > > > Tel: (+49)/7247 82-4042
> > > > E-mail : [EMAIL PROTECTED]
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging in struts.

2003-06-18 Thread Kwok Peng Tuck
If you can't see your standard output try looking in the 
$CATALINA_HOME/logs directory and look for a file called catalina.out.
I used a linux rpm installation of tomcat and all stdout goes there when 
tomcat is started up.  

Filip Polsakiewicz wrote:

Hi Simon,

there is a lot of info on that question in O'Reilly Programming Jakarta
Struts. The tell you how to use Commons Logging or
Log4J within your struts apps.
And: whatever you print to stdout or stderr appears in your tomcat window
anyway (at least it should)
Greetz from Karlsruhe too,

Filip

 

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:24 AM
To: Struts Users Mailing List
Subject: Logging in struts.
Hi all,

I didn't really want to post such a basic question, but I have tried a
couple of possible solutions and have had zero luck.  So,
How do you log messages using the Struts logger, so that they
will print to
screen? I.E the window that tomcat is running in, in my case.
Thanks, cheers etc etc

Simon

"I have often wondered how it is that every man loves himself
more than all
the rest of men, but yet sets less value on his own opinion of
himself than
on the opinion of others." -- Georg Christoph Lichtenberg
Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.
Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Logging in struts.

2003-06-18 Thread Filip Polsakiewicz
> -Original Message-
> From: Simon Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 18, 2003 11:02 AM
> To: Struts Users Mailing List
> Subject: Re: Logging in struts.
>
>
> Hi Gemes and Filip,
>
> Thanks for the answers.  I'm using commons logging (and I'm just
> checkin my
> copy of Prog' J.Struts), but println() isn't even dumping out to screen,
> even though  when I go throught the page it runs the x.do class!

You should make sure (probably in yout tomcat config) that stdout and stderr
are not redirected to a file or something)
When I use sys.out.println() in my apps it always prints to my Tomcat
window.

>
> Simon
>
> PS
> Filip, where are you in KA?

Near Karl-Wilhelm-Platz

Filip

>
> - Original Message -
> From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 18, 2003 10:50 AM
> Subject: RE: Logging in struts.
>
>
> > Hi Simon,
> >
> > there is a lot of info on that question in O'Reilly Programming Jakarta
> > Struts. The tell you how to use Commons Logging or
> > Log4J within your struts apps.
> > And: whatever you print to stdout or stderr appears in your
> tomcat window
> > anyway (at least it should)
> >
> > Greetz from Karlsruhe too,
> >
> > Filip
> >
> > > -Original Message-
> > > From: Simon Kelly [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 18, 2003 10:24 AM
> > > To: Struts Users Mailing List
> > > Subject: Logging in struts.
> > >
> > >
> > > Hi all,
> > >
> > > I didn't really want to post such a basic question, but I have tried a
> > > couple of possible solutions and have had zero luck.  So,
> > >
> > > How do you log messages using the Struts logger, so that they
> > > will print to
> > > screen? I.E the window that tomcat is running in, in my case.
> > >
> > > Thanks, cheers etc etc
> > >
> > > Simon
> > >
> > > "I have often wondered how it is that every man loves himself
> > > more than all
> > > the rest of men, but yet sets less value on his own opinion of
> > > himself than
> > > on the opinion of others." -- Georg Christoph Lichtenberg
> > >
> > > Institut fuer
> > > Prozessdatenverarbeitung
> > > und Elektronik,
> > > Forschungszentrum Karlsruhe GmbH,
> > > Postfach 3640,
> > > D-76021 Karlsruhe,
> > > Germany.
> > >
> > > Tel: (+49)/7247 82-4042
> > > E-mail : [EMAIL PROTECTED]
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging in struts.

2003-06-18 Thread Simon Kelly
Hi Gemes and Filip,

Thanks for the answers.  I'm using commons logging (and I'm just checkin my
copy of Prog' J.Struts), but println() isn't even dumping out to screen,
even though  when I go throught the page it runs the x.do class!

Simon

PS
Filip, where are you in KA?

- Original Message -
From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 10:50 AM
Subject: RE: Logging in struts.


> Hi Simon,
>
> there is a lot of info on that question in O'Reilly Programming Jakarta
> Struts. The tell you how to use Commons Logging or
> Log4J within your struts apps.
> And: whatever you print to stdout or stderr appears in your tomcat window
> anyway (at least it should)
>
> Greetz from Karlsruhe too,
>
> Filip
>
> > -Original Message-
> > From: Simon Kelly [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 18, 2003 10:24 AM
> > To: Struts Users Mailing List
> > Subject: Logging in struts.
> >
> >
> > Hi all,
> >
> > I didn't really want to post such a basic question, but I have tried a
> > couple of possible solutions and have had zero luck.  So,
> >
> > How do you log messages using the Struts logger, so that they
> > will print to
> > screen? I.E the window that tomcat is running in, in my case.
> >
> > Thanks, cheers etc etc
> >
> > Simon
> >
> > "I have often wondered how it is that every man loves himself
> > more than all
> > the rest of men, but yet sets less value on his own opinion of
> > himself than
> > on the opinion of others." -- Georg Christoph Lichtenberg
> >
> > Institut fuer
> > Prozessdatenverarbeitung
> > und Elektronik,
> > Forschungszentrum Karlsruhe GmbH,
> > Postfach 3640,
> > D-76021 Karlsruhe,
> > Germany.
> >
> > Tel: (+49)/7247 82-4042
> > E-mail : [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logging in struts.

2003-06-18 Thread Filip Polsakiewicz
Hi Simon,

there is a lot of info on that question in O'Reilly Programming Jakarta
Struts. The tell you how to use Commons Logging or
Log4J within your struts apps.
And: whatever you print to stdout or stderr appears in your tomcat window
anyway (at least it should)

Greetz from Karlsruhe too,

Filip

> -Original Message-
> From: Simon Kelly [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 18, 2003 10:24 AM
> To: Struts Users Mailing List
> Subject: Logging in struts.
>
>
> Hi all,
>
> I didn't really want to post such a basic question, but I have tried a
> couple of possible solutions and have had zero luck.  So,
>
> How do you log messages using the Struts logger, so that they
> will print to
> screen? I.E the window that tomcat is running in, in my case.
>
> Thanks, cheers etc etc
>
> Simon
>
> "I have often wondered how it is that every man loves himself
> more than all
> the rest of men, but yet sets less value on his own opinion of
> himself than
> on the opinion of others." -- Georg Christoph Lichtenberg
>
> Institut fuer
> Prozessdatenverarbeitung
> und Elektronik,
> Forschungszentrum Karlsruhe GmbH,
> Postfach 3640,
> D-76021 Karlsruhe,
> Germany.
>
> Tel: (+49)/7247 82-4042
> E-mail : [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging in struts.

2003-06-18 Thread Gemes Tibor
Simon Kelly írta:

Hi all,

I didn't really want to post such a basic question, but I have tried a
couple of possible solutions and have had zero luck.  So,
How do you log messages using the Struts logger, so that they will print to
screen? I.E the window that tomcat is running in, in my case.
 

They are not log messages usually but System.out/System.err println() 
calls. However if you configure
your logging framework to log to console, the result is the same.

The struts is logging via commons-logging. Check commons-logging and 
log4j docs.

Hth,

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: logging in struts

2002-09-23 Thread Martin Cooper



> -Original Message-
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 1:09 PM
> To: Struts Users Mailing List
> Subject: RE: logging in struts
> 
> 
> martin,
> 
> where do you place the configuration property file for jdk 
> 1.4?  the defaulkt is in a directory under the jre, but this 
> does not seem like a good place for some reason  how does 
> your company do this?

Using the one in the jre/lib directory isn't such a good idea if you don't
want to affect all clients of the JVM on that system. We put the file in our
own installation directory, and tell the JVM about it using the
'java.util.logging.config.file' system property, which we pass on the
command line (or in the Resin config file).

--
Martin Cooper


> 
> thanks,
> mark
> 
> 
> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 1:05 PM
> To: 'Struts Users Mailing List'
> Subject: RE: logging in struts
> 
> 
> 
> 
> > -Original Message-
> > From: Mark Silva [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 23, 2002 10:08 AM
> > To: Struts Users Mailing List
> > Subject: logging in struts
> > 
> > 
> > hey there,
> > 
> > i was wondering what people ar eusing for logging in struts.  
> > it seems that with jdk1.4, and the included logging, that 
> > would be the right framework.  has anybody had readon to use 
> > something else, like the jakarta package, or log4j?  
> 
> The Commons Logging component was developed primarily so that 
> someone who
> elects to use other Commons components is not locked in to a specific
> logging framework. In other words, we didn't want to have to 
> tell people
> that if they wanted to use BeanUtils, for example, then they 
> would have to
> use Log4J or whatever - that wouldn't fly. If you have the 
> same need in your
> own applications, then you are, of course, free to use Commons Logging
> yourself.
> 
> Beyond that, it's really a question of your own needs. The 
> various logging
> frameworks have differing sets of functionality, although I'm not
> sufficiently familiar with them myself to accurately describe those
> differences.
> 
> At my company, we elected to go with JDK 1.4 logging, because we were
> already using JDK 1.4, and the logging framework is "just 
> there", and met
> our needs.
> 
> --
> Martin Cooper
> 
> 
> > 
> > also i had a question about the configuration file for the 
> > loggin using jdk1.4.  where does this go in a typical 
> > tomcat/struts setup? 
> > 
> > thanks,
> > mark
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: logging in struts

2002-09-23 Thread Mark Silva

martin,

where do you place the configuration property file for jdk 1.4?  the defaulkt is in a 
directory under the jre, but this does not seem like a good place for some reason  
how does your company do this?

thanks,
mark


-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:05 PM
To: 'Struts Users Mailing List'
Subject: RE: logging in struts




> -Original Message-
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 10:08 AM
> To: Struts Users Mailing List
> Subject: logging in struts
> 
> 
> hey there,
> 
> i was wondering what people ar eusing for logging in struts.  
> it seems that with jdk1.4, and the included logging, that 
> would be the right framework.  has anybody had readon to use 
> something else, like the jakarta package, or log4j?  

The Commons Logging component was developed primarily so that someone who
elects to use other Commons components is not locked in to a specific
logging framework. In other words, we didn't want to have to tell people
that if they wanted to use BeanUtils, for example, then they would have to
use Log4J or whatever - that wouldn't fly. If you have the same need in your
own applications, then you are, of course, free to use Commons Logging
yourself.

Beyond that, it's really a question of your own needs. The various logging
frameworks have differing sets of functionality, although I'm not
sufficiently familiar with them myself to accurately describe those
differences.

At my company, we elected to go with JDK 1.4 logging, because we were
already using JDK 1.4, and the logging framework is "just there", and met
our needs.

--
Martin Cooper


> 
> also i had a question about the configuration file for the 
> loggin using jdk1.4.  where does this go in a typical 
> tomcat/struts setup? 
> 
> thanks,
> mark
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: logging in struts

2002-09-23 Thread Martin Cooper



> -Original Message-
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 10:08 AM
> To: Struts Users Mailing List
> Subject: logging in struts
> 
> 
> hey there,
> 
> i was wondering what people ar eusing for logging in struts.  
> it seems that with jdk1.4, and the included logging, that 
> would be the right framework.  has anybody had readon to use 
> something else, like the jakarta package, or log4j?  

The Commons Logging component was developed primarily so that someone who
elects to use other Commons components is not locked in to a specific
logging framework. In other words, we didn't want to have to tell people
that if they wanted to use BeanUtils, for example, then they would have to
use Log4J or whatever - that wouldn't fly. If you have the same need in your
own applications, then you are, of course, free to use Commons Logging
yourself.

Beyond that, it's really a question of your own needs. The various logging
frameworks have differing sets of functionality, although I'm not
sufficiently familiar with them myself to accurately describe those
differences.

At my company, we elected to go with JDK 1.4 logging, because we were
already using JDK 1.4, and the logging framework is "just there", and met
our needs.

--
Martin Cooper


> 
> also i had a question about the configuration file for the 
> loggin using jdk1.4.  where does this go in a typical 
> tomcat/struts setup? 
> 
> thanks,
> mark
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logging in struts

2002-09-23 Thread Galbreath, Mark

When you are dealing with this lunatic, everyday is Friday.  :-(

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 3:13 PM
To: Struts Users Mailing List
Subject: RE: logging in struts


And it's not even Friday yet!

>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 23, 2002 2:10 PM
>To: Struts Users Mailing List
>Subject: Re: logging in struts
>
>
>I highly suspicion this character is, in fact, a bot.  He got 
>lucky on a 
>soundex match that came close to approximating the topic of interest. 
> That's what I discount it to - nothing more.  If I'm incorrect, I 
>apologize in advance.  It will take some serious convincing to make me 
>believe he isn't though ...
>
>Hajratwala, Nayan (N.) wrote:
>
>>Agreed that some previous posts have been pretty sketchy, but 
>it seems to me that in this case he may have just 
>misunderstood the question "logging in struts" to mean 
>"logging in IN struts"... in which case his suggestion is 
>probably valid.
>>
>>---
>>- Nayan Hajratwala
>>- Chikli Consulting LLC
>>- http://www.chikli.com
>>
>
>-- 
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user->[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: <mailto:[EMAIL PROTECTED]>
>
>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: logging in struts

2002-09-23 Thread Galbreath, Mark

+1

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:41 PM
To: Struts Users Mailing List
Subject: Re: logging in struts


Disregard this garbage.  I don't know who this guy is or what in the 
world he thinks he's doing, but many here have filtered him out.  Don't 
be led astray by his unintelligible jibberish.

Zahid Rahman wrote:

>Here is a suggestion!
>Download chapter 21 of  JSP PRO second edition from www.wrox.com
>It shows a complete struts application for a Shopping cart.
>It has login form, logout form etc.
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: logging in struts

2002-09-23 Thread Zahid Rahman

Oh look!
Mention Academia and these people get up tight.

I will correct your grammar for you.
> I 'am'  highly suspicion 'who' this character is, in fact, a bot.  He got
lucky on a .

I was never on the JSP-INTEREST list , yesterday or today.
That is your friends doing the impersonations.

I am convinced that you people who are on the  user mailing,
stay on it to impress.
Do you want to know how impressed I am ..

Calling me names in an email list just tells me that you are not only
academically challenge but when challenged  because your are academically
challenged,
you stoop to making quite cowardly remarks.

The best posting I have read so far was the one written by
"Galbreath, Mark".
He wrote "we wrote our own login form." Would you like to have the .java
Chapter 21 shows you how to write a login form using the struts framework.

If you point your browser at this link
www.objectworlds.com in the near future.
You will see a complete web application using the
struts framework.

I very strongly suggest that you read the philosophy  behind
Model2.
It says that Craig Mclaughlan is heading the Model2 framework,
So that anyone wishing to use it can simply
use it and not have to write your own.
-
- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 8:10 PM
Subject: Re: logging in struts


> I highly suspicion this character is, in fact, a bot.  He got lucky on a
> soundex match that came close to approximating the topic of interest.
>  That's what I discount it to - nothing more.  If I'm incorrect, I
> apologize in advance.  It will take some serious convincing to make me
> believe he isn't though ...
>
> Hajratwala, Nayan (N.) wrote:
>
> >Agreed that some previous posts have been pretty sketchy, but it seems to
me that in this case he may have just misunderstood the question "logging in
struts" to mean "logging in IN struts"... in which case his suggestion is
probably valid.
> >
> >---
> >- Nayan Hajratwala
> >- Chikli Consulting LLC
> >- http://www.chikli.com
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: logging in struts

2002-09-23 Thread Tero P Paananen

> I highly suspicion this character is, in fact, a bot.

...and it is eternal Friday on the Struts User list.

Kick the bot off the list.

-TPP

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: logging in struts

2002-09-23 Thread Tiago Nodari


 He got kicked off the JSP-Interest list yesterday or today

At 02:10 PM 9/23/2002 -0500, you wrote:
>I highly suspicion this character is, in fact, a bot.  He got lucky on a 
>soundex match that came close to approximating the topic of interest. 
>That's what I discount it to - nothing more.  If I'm incorrect, I 
>apologize in advance.  It will take some serious convincing to make me 
>believe he isn't though ...
>
>Hajratwala, Nayan (N.) wrote:
>
>>Agreed that some previous posts have been pretty sketchy, but it seems to 
>>me that in this case he may have just misunderstood the question "logging 
>>in struts" to mean "logging in IN struts"... in which case his suggestion 
>>is probably valid.
>>
>>---
>>- Nayan Hajratwala
>>- Chikli Consulting LLC
>>- http://www.chikli.com
>
>--
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logging in struts

2002-09-23 Thread Chappell, Simon P

And it's not even Friday yet!

>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 23, 2002 2:10 PM
>To: Struts Users Mailing List
>Subject: Re: logging in struts
>
>
>I highly suspicion this character is, in fact, a bot.  He got 
>lucky on a 
>soundex match that came close to approximating the topic of interest. 
> That's what I discount it to - nothing more.  If I'm incorrect, I 
>apologize in advance.  It will take some serious convincing to make me 
>believe he isn't though ...
>
>Hajratwala, Nayan (N.) wrote:
>
>>Agreed that some previous posts have been pretty sketchy, but 
>it seems to me that in this case he may have just 
>misunderstood the question "logging in struts" to mean 
>"logging in IN struts"... in which case his suggestion is 
>probably valid.
>>
>>---
>>- Nayan Hajratwala
>>- Chikli Consulting LLC
>>- http://www.chikli.com
>>
>
>-- 
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user->[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: <mailto:[EMAIL PROTECTED]>
>
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: logging in struts

2002-09-23 Thread Eddie Bush

I highly suspicion this character is, in fact, a bot.  He got lucky on a 
soundex match that came close to approximating the topic of interest. 
 That's what I discount it to - nothing more.  If I'm incorrect, I 
apologize in advance.  It will take some serious convincing to make me 
believe he isn't though ...

Hajratwala, Nayan (N.) wrote:

>Agreed that some previous posts have been pretty sketchy, but it seems to me that in 
>this case he may have just misunderstood the question "logging in struts" to mean 
>"logging in IN struts"... in which case his suggestion is probably valid.
>
>---
>- Nayan Hajratwala
>- Chikli Consulting LLC
>- http://www.chikli.com
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: logging in struts

2002-09-23 Thread Zahid Rahman

Thank you.

This is the struts framework user mailing isn't it ?



As Einstein wrote it is not the best way to

learn by example, but the only way is to learn is by example.



As you may have noticed, I haven't asked any questions because

I don't need to.



The chapter also goes on to say that it is recommended

that one should use tomcat 4.0,

because that is the container which is used by the development team.

you wrote Buyer beware :-

The download is free.

If want an explanation of the terminology because you don't understand then
buy the book.

These American are really strange,

they don't seem to like buying books.



Zahid

- Original Message -
From: "Chappell, Simon P" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 7:48 PM
Subject: RE: logging in struts


I checked and there is an example app in the 21st chapter of the book. I
haven't tried it and it may be good, bad or ugly. Buyer beware.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Zahid Rahman [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 23, 2002 1:44 PM
>To: Struts Users Mailing List
>Subject: Re: logging in struts
>
>
>What is garbage about what I wrote ?
>
>A complete struts application can be found in chapter 21
>of jsp pro second edition.
>
>- Original Message -
>From: "Eddie Bush" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Monday, September 23, 2002 7:40 PM
>Subject: Re: logging in struts
>
>
>> Disregard this garbage.  I don't know who this guy is or what in the
>> world he thinks he's doing, but many here have filtered him
>out.  Don't
>> be led astray by his unintelligible jibberish.
>>
>> Zahid Rahman wrote:
>>
>> >Here is a suggestion!
>> >Download chapter 21 of  JSP PRO second edition from www.wrox.com
>> >It shows a complete struts application for a Shopping cart.
>> >It has login form, logout form etc.
>> >
>>
>> --
>> Eddie Bush
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: logging in struts

2002-09-23 Thread Chappell, Simon P

I checked and there is an example app in the 21st chapter of the book. I haven't tried 
it and it may be good, bad or ugly. Buyer beware.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Zahid Rahman [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 23, 2002 1:44 PM
>To: Struts Users Mailing List
>Subject: Re: logging in struts
>
>
>What is garbage about what I wrote ?
>
>A complete struts application can be found in chapter 21
>of jsp pro second edition.
>
>- Original Message -
>From: "Eddie Bush" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Monday, September 23, 2002 7:40 PM
>Subject: Re: logging in struts
>
>
>> Disregard this garbage.  I don't know who this guy is or what in the
>> world he thinks he's doing, but many here have filtered him 
>out.  Don't
>> be led astray by his unintelligible jibberish.
>>
>> Zahid Rahman wrote:
>>
>> >Here is a suggestion!
>> >Download chapter 21 of  JSP PRO second edition from www.wrox.com
>> >It shows a complete struts application for a Shopping cart.
>> >It has login form, logout form etc.
>> >
>>
>> --
>> Eddie Bush
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>>
>
>
>--
>To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: logging in struts

2002-09-23 Thread Hajratwala, Nayan (N.)

Agreed that some previous posts have been pretty sketchy, but it seems to me that in 
this case he may have just misunderstood the question "logging in struts" to mean 
"logging in IN struts"... in which case his suggestion is probably valid.



---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:41 PM
To: Struts Users Mailing List
Subject: Re: logging in struts


Disregard this garbage.  I don't know who this guy is or what in the 
world he thinks he's doing, but many here have filtered him out.  Don't 
be led astray by his unintelligible jibberish.

Zahid Rahman wrote:

>Here is a suggestion!
>Download chapter 21 of  JSP PRO second edition from www.wrox.com
>It shows a complete struts application for a Shopping cart.
>It has login form, logout form etc.
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: logging in struts

2002-09-23 Thread Zahid Rahman

What is garbage about what I wrote ?

A complete struts application can be found in chapter 21
of jsp pro second edition.

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 7:40 PM
Subject: Re: logging in struts


> Disregard this garbage.  I don't know who this guy is or what in the
> world he thinks he's doing, but many here have filtered him out.  Don't
> be led astray by his unintelligible jibberish.
>
> Zahid Rahman wrote:
>
> >Here is a suggestion!
> >Download chapter 21 of  JSP PRO second edition from www.wrox.com
> >It shows a complete struts application for a Shopping cart.
> >It has login form, logout form etc.
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: logging in struts

2002-09-23 Thread Eddie Bush

Disregard this garbage.  I don't know who this guy is or what in the 
world he thinks he's doing, but many here have filtered him out.  Don't 
be led astray by his unintelligible jibberish.

Zahid Rahman wrote:

>Here is a suggestion!
>Download chapter 21 of  JSP PRO second edition from www.wrox.com
>It shows a complete struts application for a Shopping cart.
>It has login form, logout form etc.
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: logging in struts

2002-09-23 Thread Zahid Rahman

Here is a suggestion!
Download chapter 21 of  JSP PRO second edition from www.wrox.com
It shows a complete struts application for a Shopping cart.
It has login form, logout form etc.

- Original Message -
From: "Mark Silva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 6:08 PM
Subject: logging in struts


hey there,

i was wondering what people ar eusing for logging in struts.  it seems that
with jdk1.4, and the included logging, that would be the right framework.
has anybody had readon to use something else, like the jakarta package, or
log4j?

also i had a question about the configuration file for the loggin using
jdk1.4.  where does this go in a typical tomcat/struts setup?

thanks,
mark

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logging in struts

2002-09-23 Thread Galbreath, Mark

We wrote our own BS (before struts) custom logger.  I'll send you a copy of
the .java file, if you are interested.

Mark

-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:08 PM
To: Struts Users Mailing List
Subject: logging in struts


hey there,

i was wondering what people ar eusing for logging in struts.  it seems that
with jdk1.4, and the included logging, that would be the right framework.
has anybody had readon to use something else, like the jakarta package, or
log4j?  

also i had a question about the configuration file for the loggin using
jdk1.4.  where does this go in a typical tomcat/struts setup? 

thanks,
mark

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: logging in struts

2002-09-23 Thread Eddie Bush

The commons-logging package is an ultra-lightweight interface to ... 
whichever logging package is available:
- jdk1.4?  use that unless otherwise stated
- log4j? use that unless otherwise stated
- something else?  use that unless otherwise stated (see site for 
the ones it will look for)
- nothing?  Fine - use the simple console logger

By using commons-logging, you alleviate the need to refactor just 
because you want to use a different logging mechanism.  If you want to 
use JDK1.4 logger, you can -- if not, you can use something else. 
 Struts includes commons-logging, so incorporating it into your 
application can be as easy as adding includes and declaring the logger. 
 Note that if you wind up using Log4J, you may seriously want to 
consider grabbing a fresh JAR for commons-logging before you start. 
 There's some wild problem that will give you fits if you don't.  You 
won't notice this unless you're using Log4J (I didn't, at least) though. 
 STMA (Search the Mail Archive) for an explaination of the 
problem/solution, or just install a new JAR.

By default, JDK 1.4 logging configuration lives in:

$JAVA_HOME/jre/lib/logging.properties

You can override it.  See Sun's site for details, if you wish to do that.

Mark Silva wrote:

>hey there,
>
>i was wondering what people ar eusing for logging in struts.  it seems that with 
>jdk1.4, and the included logging, that would be the right framework.  has anybody had 
>readon to use something else, like the jakarta package, or log4j?  
>
>also i had a question about the configuration file for the loggin using jdk1.4.  
>where does this go in a typical tomcat/struts setup? 
>
>thanks,
>mark
>
-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Logging in struts-example

2002-08-29 Thread NP-KARRYS MIKE


Well I removed all the other webapps in the jetty.xml and now the
MemoryDatabasePlugin.init() routine shows up in the log file. I removed the
expanded webapps struts-blank, struts-documentation, tiles-documentation,
and tiles-tutorial (which I created) Maybe someday I will figure out why
this is happening.

Thanks for the help.

Mike Karrys
PRC Public Sector Inc.

-Original Message-
From: NP-KARRYS MIKE 
Sent: Thursday, August 29, 2002 2:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Logging in struts-example


Craig

Thanks for the reply:

I have figured out that I can see the MemoryDatabasePlugin.destroy() get
executed but not the MemoryDatabasePlugin.init() get executed. In what
sequence do plugins get initialized along with the main application.

Mike Karrys
PRC Public Sector Inc.


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:59 PM
To: Struts Users Mailing List
Subject: Re: Logging in struts-example


You can configure the logging detail level for each named package
separately -- the example webapp's components would all be covered by the
pattern "org.apache.struts.webapp.example".

Check your Log4J configuration to see what debug level would be assgned to
package.

Craig

On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:

> Date: Thu, 29 Aug 2002 12:17:12 -0400
> From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Logging in struts-example
>
>
> I have managed to get the Log4j package logging to a log file, when Jetty
> starts, for the struts-example application. I expected to see the log
> messages from the log.info() entries in the MemoryDatabasePlugin class but
> they do not show up in the log files. Are there additional configurations
to
> get these messages. I get quite a few message from the digrester and when
> the ApplicationProperties file is parsed but nothing from the application
> code.
>
> Thanks for any help,
>
> Mike Karrys
> PRC Public Sector Inc.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Logging in struts-example

2002-08-29 Thread Craig R. McClanahan



On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:

> Date: Thu, 29 Aug 2002 15:42:25 -0400
> From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Logging in struts-example
>
> Craig
>
> Thanks for the reply:
>
> I have figured out that I can see the MemoryDatabasePlugin.destroy() get
> executed but not the MemoryDatabasePlugin.init() get executed. In what
> sequence do plugins get initialized along with the main application.
>

It's done by the initApplicationPlugIns() method in ActionServlet (now
*there* is an obscure method name for you :-), which ic called very near
the end of the init() method.  If you have debugging level messages
enabled for ActionServlet, you'll a line like:

  Initializing module path '/foo' plug ins

I just verified that in my environment I really do see the init message
from MemoryDatabasePlugIn for the struts-example app.  It's logged at the
"info" level (just like the destroy message is) for a logger named:

  org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn

If you're seeing the destroy message but not the init, that would lead me
to wonder if you are perhaps subclassing ActionServlet but didn't remember
to call super.init()?  That seems unlikely (basically nothing Struts-ish
would work), but it's worth double checking.

> Mike Karrys
> PRC Public Sector Inc.

Craig


>
>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 29, 2002 12:59 PM
> To: Struts Users Mailing List
> Subject: Re: Logging in struts-example
>
>
> You can configure the logging detail level for each named package
> separately -- the example webapp's components would all be covered by the
> pattern "org.apache.struts.webapp.example".
>
> Check your Log4J configuration to see what debug level would be assgned to
> package.
>
> Craig
>
> On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:
>
> > Date: Thu, 29 Aug 2002 12:17:12 -0400
> > From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Logging in struts-example
> >
> >
> > I have managed to get the Log4j package logging to a log file, when Jetty
> > starts, for the struts-example application. I expected to see the log
> > messages from the log.info() entries in the MemoryDatabasePlugin class but
> > they do not show up in the log files. Are there additional configurations
> to
> > get these messages. I get quite a few message from the digrester and when
> > the ApplicationProperties file is parsed but nothing from the application
> > code.
> >
> > Thanks for any help,
> >
> > Mike Karrys
> > PRC Public Sector Inc.
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Logging in struts-example

2002-08-29 Thread NP-KARRYS MIKE

Craig

Thanks for the reply:

I have figured out that I can see the MemoryDatabasePlugin.destroy() get
executed but not the MemoryDatabasePlugin.init() get executed. In what
sequence do plugins get initialized along with the main application.

Mike Karrys
PRC Public Sector Inc.


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 12:59 PM
To: Struts Users Mailing List
Subject: Re: Logging in struts-example


You can configure the logging detail level for each named package
separately -- the example webapp's components would all be covered by the
pattern "org.apache.struts.webapp.example".

Check your Log4J configuration to see what debug level would be assgned to
package.

Craig

On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:

> Date: Thu, 29 Aug 2002 12:17:12 -0400
> From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Logging in struts-example
>
>
> I have managed to get the Log4j package logging to a log file, when Jetty
> starts, for the struts-example application. I expected to see the log
> messages from the log.info() entries in the MemoryDatabasePlugin class but
> they do not show up in the log files. Are there additional configurations
to
> get these messages. I get quite a few message from the digrester and when
> the ApplicationProperties file is parsed but nothing from the application
> code.
>
> Thanks for any help,
>
> Mike Karrys
> PRC Public Sector Inc.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Logging in struts-example

2002-08-29 Thread Craig R. McClanahan

You can configure the logging detail level for each named package
separately -- the example webapp's components would all be covered by the
pattern "org.apache.struts.webapp.example".

Check your Log4J configuration to see what debug level would be assgned to
package.

Craig

On Thu, 29 Aug 2002, NP-KARRYS MIKE wrote:

> Date: Thu, 29 Aug 2002 12:17:12 -0400
> From: NP-KARRYS MIKE <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Logging in struts-example
>
>
> I have managed to get the Log4j package logging to a log file, when Jetty
> starts, for the struts-example application. I expected to see the log
> messages from the log.info() entries in the MemoryDatabasePlugin class but
> they do not show up in the log files. Are there additional configurations to
> get these messages. I get quite a few message from the digrester and when
> the ApplicationProperties file is parsed but nothing from the application
> code.
>
> Thanks for any help,
>
> Mike Karrys
> PRC Public Sector Inc.
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: