Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Servlets CounterInInit

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

7 comments so far (post your own) View All Comments Latest 10 Comments:

Should the "initial" parameter be defined in the web.xml as follows..
<init-param>
<param-name>initial</param-name>
<param-value>0</param-value>
</init-param>

in the <servlet> tag?

Posted by sonali on Tuesday, 09.21.10 @ 19:15pm | #99760

In the above program of using init parameters,you haven't mentioned the init parameters in web.xml file

Posted by hemanth on Tuesday, 08.10.10 @ 15:38pm | #98819

Hi,
I think the web.xml has to be updated with the 'initial' value. This read in init().
Regards

Posted by Joseph on Sunday, 10.18.09 @ 10:02am | #91863

the web.xml
----------------------
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>org.rose.servlets.HelloWorld</servlet-class>
<init-param>
<param-name>initial</param-name>
<param-value>100</param-value>
</init-param>
</servlet>

Posted by ea on Wednesday, 04.15.09 @ 17:21pm | #86829

for every code if xml file would be here every one can easily understand the code.

Posted by anuj on Wednesday, 05.30.07 @ 13:02pm | #17715

It would have been better if the deployment descriptor is also shown here as part of the topic in java servlets->servlets examples-> Counter in Init() Method.

Posted by sandhya on Thursday, 05.17.07 @ 12:39pm | #16235

u may comment about the topic even more clear like when the init method is invoked, what is the difference between the way we did count in the early e.g. and in the current(means effect of using init() for the same purpose).

Posted by Thiruvenkadam on Wednesday, 03.21.07 @ 11:40am | #12328

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.