L
laredotornado
Hello,
Someone had written an application in Tomcat and we were moving it
to WebLogic 5, sp 12 for Solaris (I know it's old, we'll upgrade one
day). For now, I was curious, if there is a call like
public final class InitServlet extends HttpServlet^M
{^M
/** Initializes the servlet.^M
* @param config of type ServletConfig^M
* @throws ServletException for any reason^M
*/^M
public void init(ServletConfig config) throws ServletException^M
{^M
super.init(config);^M
^M
//Used to log in the file^M
ServletContext context = getServletContext();^M
//Check if logging is necessary^M
String szLogLevel = context.getInitParameter("system.log");
....
1. Where would we define what the parameter "system.log" should be??
2. When and how would the "init" method of the "InitServlet" class get
called?
Thanks, - Dave
Someone had written an application in Tomcat and we were moving it
to WebLogic 5, sp 12 for Solaris (I know it's old, we'll upgrade one
day). For now, I was curious, if there is a call like
public final class InitServlet extends HttpServlet^M
{^M
/** Initializes the servlet.^M
* @param config of type ServletConfig^M
* @throws ServletException for any reason^M
*/^M
public void init(ServletConfig config) throws ServletException^M
{^M
super.init(config);^M
^M
//Used to log in the file^M
ServletContext context = getServletContext();^M
//Check if logging is necessary^M
String szLogLevel = context.getInitParameter("system.log");
....
1. Where would we define what the parameter "system.log" should be??
2. When and how would the "init" method of the "InitServlet" class get
called?
Thanks, - Dave