This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Solution -> the directory structure should be like this
Gaurav x Jain
Joined: Feb 01, 2011
Thank you for the directory structure. One more thing I want to know what I should write in web.xml file because I am still getting the same problem. I think it is because of web.xml details. Please help me.
The structure is fine even if we put web.xml as specified by Gaurav. I could see a few issues here:
1) you are giving the URL http://localhost:<port>/TestJSP/ but missing the filename test.jsp after that. It won't pick up the jsp file by default until we specify the filenames to be picked in the web.xml file.
2) Remember that the names are case-sensitive, TestJSP is different from testJSP/TestJsp etc.
Use code tags to post your folder structure - the ones you've posted so far aren't formatted to tell us where the files really are. Also post your web.xml. If you are just using JSPs for now, it doesn't need to contain much.