You got general direction of the wind that files that you wish to deploy should be placed in webapps folder, unfortunately it is not full truth.
You need to provide your "ch" folder with minimal Tomcat deployment directory structure.
- Create new project folder in directory webapps (you already did this with creating new folder named ch)
- Place context.jsp in "ch" folder (you already did)
- In project folder create another folder called WEB-INF where you will save web.xml
- Create web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<welcome-file-list>
<welcome-file>context.jsp</welcome-file>
</welcome-file-list>
</web-app>
- Start server and call your JSP
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
Offline 6,656 posts
since Dec 2004