i am new to eclipse environment. I downloaded eclipse helios and tomcat 6. I configured them properly. Now my job is to create servlet for some sign in form. I have been given some existing servlet file from my company. I just need to modify it. Could anybody tell me how to run my existing servlet file? How to connect the file with my mysql table?
Share
Steps to create java web application:
1.Create new Dynamic Web Project
2.Copy existing servlet file to src folder
3.Create web.xml file in WebContent/WEB-INF folder
4.Configure web.xml, for example:
replace test.HelloServlet by your servlet class, servlet name also may be replaced
5.Open Server view in Eclipse, add new Tomcat Server using context menu, publish the project and run server.