Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Problem

 
R Sugan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
problem.

Following is my code:




This is my servlet code






Thanks
 
Ankit Garg
Sheriff
Posts: 9529
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There the HttpServlet is not for.
Implement ServletContextListener.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic