Help with JSP and Tomcat
I am new to JSP, and I need some help. I downloaded latest Tomcat and configure it. I think that i configured it in good way, because when I open http://localhost:8080/ a get this screen:
I just wanted to test it, so I create some JSP file in Notepad. Beside that I created folder helloJSP with empty subfolder WEB-INF inside webapps folder.
At the end when i have tried to test it, i get this error.
Look for webapps/ROOT
and place your test jsp to start with.
or, Put a dummy web.xml file inside WEB-INF that should do the trick.
I have moved it to ROOTS folder and rename it to index1.jsp, and i still get same error.
In folder /helloJSP/WEB-INF there are some files including web.xml, i assume that they are generated automatic by tomact or something like that.
http://localhost:8080/docs/appdev/sample can give you a sample to test your tomcat.Download the sample,unzip and copy the unzipped sample into tomcat's webapps folder.Start tomcat then in the browser puthttp://localhost:8080/sample
try to insert the tag welcom-file-list into your web.xml
and make sure that in the folder webapps your project root the folder helloJSP exists and inside the folder helloJSP the file index.jsp exists. you should also make a call to the manager webapp inside tomcat to look if the application helloJSP is running, before you call the index.jsp.
if you want, you can send me your index.jsp and i will try it to run on my apache-tomcat-7.0.6.
I solved this problem. I just created system variable to my JDK in My computer -> Properties -> -> Advaned -> Environment Variables.
Anyway I have new problem. When I start eclipse, and I go to File -> New Project, I dont have Web option to chose.
Here it is: