I am midway developing my first dynamic web project in eclipse. I am using tomcat v7. I have developed a login.jsp page. On success, it redirects to another home.jsp.
It worked well in eclipse. I edited the web.xml file by changing index.jsp to login.jsp. Both the jsp files are in WebContent folder. Also, i have included a servlet.java file in the jsp file. the servlet file resides in projectName/resources/src/pkg folder.
But when I pasted the project folder as a whole into the Apache/webapps folder, and tried to run the project from browser (after starting tomcat) using localhost:8080/ProjectName/ it returned error 404.
When i tried using localhost:8080/ProjectName/WebContent/login.jsp , then the jsp file was loaded. But on entering the correct username and password, it didnt redirect to home.jsp.
Can anyone please help me.. Thanks in advance.