I'm using Eclipse and wanted to run a simple servlet. I made a project on the workspace as you can see on the attached image. And got a code on WEB-INF/src on temp project
How do I run the FirstServlet? Can't seem to find an answer. All I found on the net was putting my class to ROOT/WEB-INF/classes on Tomcat's installed folder. Any articles or links for this stuff is very well accepted and thanked.VB Code:
package net.nevyn.brownmonkey; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FirstServlet extends HttpServlet{ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException{ PrintWriter out=response.getWriter(); out.println("Hello World"); out.close(); } }
Thank you so much.
