I have a servlet. I’m new in java. But i need to run the servlet. It has two methods:
public void doGet (HttpServletRequest request,
HttpServletResponse response) {...}
and
public void doPost HttpServletRequest request,
HttpServletResponse response) {...}
What steps i need to do to run the servlet? (I have tomcat 7 installed, eclipse SE with tomcat plugin, netBeans)
HttpServletand override the methoddoGetanddoPost, write your business logic in thereConfigure
web.xml, something like :Deploy your web project in the tomcat
localhost:8080/mywebapp/helloworld.doin the browser’s address bar,mywebappis your project nameIf you are lucky, you will see the result.