init parameters

1). System.out.println(value); is working fine and printing the value on to the console but when I try to display the value onto the browser(in doPost() method) it's not displaying?

2). When I wrote the following code(what is now in init() method) in doPost(), it's not even printing onto the console? value = getServletConfig().getInitParameter("JndiName"); System.out.println(value);

Originally posted by Arjun Reddy: System.out.println(value); is working fine and printing the value on to the console but when I try to display the value onto the browser(in doPost() method) it's not displaying?

I see no place in your code where you are writing the value to the response.