• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

logging into my own txt file

Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to everybody
i have below example to explain my question, i could not find my answer
about how can i log my information into my own txt file kept
in say /home/lee/tomcat5/leelog.txt
2)what is org.apache.struts.webapp.Example to do in the below snippet

thank lee
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public final class EditSubscriptionAction extends Action {
private Log log =
public ActionForward execute(ActionMapping mapping, ..)
throw Exception{
if (log.isDebugEnabled()) {
log.debug("EditSubscriptionAction: Processing " + action + " action");
if (user == null) {
if (log.isTraceEnabled()) {
log.trace(" User is not logged on in session " + session.getId());
return (mapping.findForward("logon"));
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
professionally read, modify and write PDF files from Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!