simple question about servlets
hi thanks for reading.
I just want to ask maybe a simple question, i did a short tutorial on the web on this site Java Tips - Introduction to Java Servlets with Eclipse
it create a simple jsp talking to a servlet.
did everything, the jsp and the servlet. I believe I got the servlet to the correct package then I exported the project to the webapp folder of my tomcat.
typed in localhost:8080/MyFirstServlet on mozilla then the jsp page came up, after clicking the button that calls the servlet page, it gave me a 404 pag not found error.
checked the webapps, and the servlet page which is named GreetingServlet is located under webapps/MyFirstServlet/WEB-INF/classes/com/mycompany/servlet/servletLiesHere
it is there but I don't understand why it is not seen
then I tried to run the package inside eclipse and the project worked perfectly, the jsp page and successfully called the servlet with the greeting
to make things short, I did a project. used mozilla to run it, it was not able to find the servlet.
then I ran the package inside eclipse and it worked perfectly.
don't know what is the problem, can you please give me some ideas? :confused::confused::confused: