itamar lev

Greenhorn
+ Follow
since Feb 21, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by itamar lev

yes it helped.
Thank you very much.

Itamar
19 years ago
I tried working with Servlets ServletConfig. As I understood the
GenericServlet
gets the parameters automatically and using getServletConfig() brings
the config.
Now I have a servlet that extends from HttpServlet.
in it I have the init() method and in this method I call the
getServletConfig() but I get
a ServletConfig instance with no parameters !!!
What am I doing wrong ?

The parameters are set in the web.xml file descriptor.

<context-param>
<param-name>telephone</param-name>
<param-value>1234</param-value>
</context-param>


Now the problem with the getInitParameter() is that it doesn't bring the value
of "telephone" for example.
Furthermore the :
servletConfig.getInitParameterNames().hasMoreElements()
retruns false !!
19 years ago
I tried working with Servlets ServletConfig. As I understood the GenericServlet
gets the parameters automatically and using getServletConfig() brings the config.
Now I have a servlet that extends from HttpServlet.
in it I have the init() method and in this method I call the getServletConfig() but I get
a ServletConfig instance with no parameters !!!
What am I doing wrong ?
19 years ago
I have a problem that sometimes the server side doesn't return a reply for my requests.
The whole application is stuck !
Do someone know how to solve this problem by setting properties in the WAS custom properties,
or a solution in the servlet ?
thanks,
Itamar
19 years ago