File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Problem" Watch "Servlet Problem" New topic

Servlet Problem

R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
I need to run my Servlet program continuously and without using HTTP parameters so i am using load on start up function and am include my Servlet class name into web.XML. But i can't able to open Apache-tomcat browser.Please give me any solution to solve this

Following is my code:

This is my servlet code

Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

Suganya is that the complete code for the servlet?? There is no doGet or doPost method so you won't be able to access the servlet from an HTTP request i.e. through a browser. If that is not the complete code, then please provide the complete code...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
There the HttpServlet is not for.
Implement ServletContextListener.
I agree. Here's the link:
subject: Servlet Problem
jQuery in Action, 3rd edition