Dear Friends,
I have written a simple servlet which reads a init
parameter from the web.xml file and displays on the
browser. I'm a beginner and trying to learn simple
servlets, I have reached where I can read some init
params from the web.xml file and displays on the
browser, but all the simple
Hi,
Are you using init() method of the servlet for
fetching init parameters like this?
String str =
getServletConfig().getInitParameter(param1);
Rgrds,
Hardik
--- Raasi Potluri [EMAIL PROTECTED] wrote:
Dear Friends,
I have written a simple servlet which reads a init
parameter from the
Hello Hardik,
thanks for your reply, yeas, I'm using the same code
as you written,
thanx eversomuch, please help me out
the code looks like this
[code]
package com.jspbook;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class InternationalizedHelloWorld
Hi,
Use init(ServletConfig config) method of servlet for
init parameters. bcs, init parameters will be set only
once it is initialised... so, u have to do the same in
the init() method only...
thanks.
--- Raasi Potluri [EMAIL PROTECTED] wrote:
Hello Hardik,
thanks for your reply, yeas, I'm