SCJP
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
And what happens if you remove the space in the servlet name?
SCJP
I put form.html in webapps folder and put class and stuff in WEB-INF folder , but I didn't put web.xml there(I forgot to do so)
SCJP 5, SCWCD 5, SCBCD 5
SCJP
SCJP 5, SCWCD 5, SCBCD 5
omar al kababji wrote:you should have a directory in your webapps with a name for you web application for example "myWebApp" and then when you call form.html you should call
http://localhost:8080/myWebApp/form.html
your structure should be like this
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP
SCJP 5, SCWCD 5, SCBCD 5
omar al kababji wrote:your form.html file is inside the WEB-INF directory this is wrong it should be raised up by one level, it should be a sibling for the WEB-INF directory ;). compare my file structure and yours again.
SCJP
SCJP 5, SCWCD 5, SCBCD 5
SCJP
vaibhav mishra wrote:it seems that web.xml was corrupted somehow
Rob Prime wrote:Besides the link, what is in the output and error logs of your Tomcat? A 404 error for static content could indicate an error in your web.xml
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Die Fledermaus does not fear such a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|