Selasa, 26 Agustus 2008
Senin, 25 Agustus 2008
Minggu, 24 Agustus 2008
Kamis, 21 Agustus 2008
How to make custom tag
http://marc.info/?l=taglibs-user&m=106753702924597&w=2
To make it work, you have to modify the taglib uri though.
To make it work, you have to modify the taglib uri though.
Rabu, 20 Agustus 2008
How to use log4j with separate files
# Please think of its meaning by yourself
# Start with 6 level : trace, debug, info, warn, etc
# Any question with this, please ask uncle google for further information
# Set root logger level to DEBUG and its only appender to WebLog.
log4j.rootLogger=WARN, RootLog
log4j.logger.com.myapp.StrutsAction=DEBUG, WebLog
# WebLog is set to be a RollingFileAppender.
log4j.appender.WebLog=org.apache.log4j.RollingFileAppender
log4j.appender.WebLog.file=~/web/groupStructure.log
log4j.appender.WebLog.MaxFileSize=2048KB
log4j.appender.WebLog.MaxBackupIndex=5
# WebLog uses PatternLayout.
log4j.appender.WebLog.layout=org.apache.log4j.PatternLayout
log4j.appender.WebLog.layout.ConversionPattern=%d %c [%p] - %m%n
# RootLog is sent to the Console
log4j.appender.RootLog=org.apache.log4j.ConsoleAppender
log4j.appender.RootLog.layout=org.apache.log4j.PatternLayout
log4j.appender.RootLog.layout.ConversionPattern=%d %c [%p] - %m%n
usage :
import org.apache.log4j.Logger;
public class myAction extends ActionSupport{
private static final Logger log = Logger.getLogger(myAction.class);
private String hello;
@Override
public String execute(){
setHello("Hello World");
log.debug("test Group Structure execute "+hello);
return SUCCESS;
}
}
# Start with 6 level : trace, debug, info, warn, etc
# Any question with this, please ask uncle google for further information
# Set root logger level to DEBUG and its only appender to WebLog.
log4j.rootLogger=WARN, RootLog
log4j.logger.com.myapp.StrutsAction=DEBUG, WebLog
# WebLog is set to be a RollingFileAppender.
log4j.appender.WebLog=org.apache.log4j.RollingFileAppender
log4j.appender.WebLog.file=~/web/groupStructure.log
log4j.appender.WebLog.MaxFileSize=2048KB
log4j.appender.WebLog.MaxBackupIndex=5
# WebLog uses PatternLayout.
log4j.appender.WebLog.layout=org.apache.log4j.PatternLayout
log4j.appender.WebLog.layout.ConversionPattern=%d %c [%p] - %m%n
# RootLog is sent to the Console
log4j.appender.RootLog=org.apache.log4j.ConsoleAppender
log4j.appender.RootLog.layout=org.apache.log4j.PatternLayout
log4j.appender.RootLog.layout.ConversionPattern=%d %c [%p] - %m%n
usage :
import org.apache.log4j.Logger;
public class myAction extends ActionSupport{
private static final Logger log = Logger.getLogger(myAction.class);
private String hello;
@Override
public String execute(){
setHello("Hello World");
log.debug("test Group Structure execute "+hello);
return SUCCESS;
}
}
Minggu, 17 Agustus 2008
Senin, 11 Agustus 2008
Deploy Blog Server at Glassfish
http://weblogs.java.net/blog/amyroh/archive/2006/02/roller_21_on_gl_1.html
Minggu, 10 Agustus 2008
Rabu, 06 Agustus 2008
How Client Server Works at Servicemix
Try wsdl-first, then wsn-http-binding from apache's servicemix examples.
For wsdl-first, you just need to read the README.txt and learn from it.
For wsn-http-binding, read the README.txt and try this link as supplement.
http://servicemix.apache.org/example-scenario.html
For wsdl-first, you just need to read the README.txt and learn from it.
For wsn-http-binding, read the README.txt and try this link as supplement.
http://servicemix.apache.org/example-scenario.html
Langganan:
Postingan (Atom)