You don't need to put the servlet into JSP. If you want to run this servlet, you'll have to create a web application and then deploy it on tomcat. I would recommend that you read a book to clear your concepts. For now you can consult a tutorial like this to run your servlet...
w8 i figure it out by editing the web.xml examples/WEB-INF folder but i would like to make my own folder in ROOT directory for making it all happen.
Hi Carsten, Welcome to JavaRanch,
Please use real words when posting here (w8 instead of what). And you can have your own web applications inside webapp directory in Tomcat (or any other container). What's the issue you are having now and which version of tomcat are you trying to use?
URL patterns start with / and don't end with /. So instead of <url-pattern>html/</url-pattern>, use <url-pattern>/html</url-pattern>, the html.class file will go under WEB-INF/classes folder (I don't see any package declarations in the source of that class). Also I'm not sure if you can put your application inside the ROOT folder in tomcat. Move your index folder to /webapps folder i.e. /webapps/index
Joined: Sep 22, 2009
Strenge i think i saw it working once but only once it dosnt show the file anymore.