naveen yadav wrote:
here is web.xml under \WEB-INF dir.
Still getting same error.
- url pattern must be something /HellowWorld/* something like that, not what you have there; I suggest you use url patter *.something, then you change the action of your form to whatever.something and the url pattern of the servlet to *.something - please put whatever you want instead of that. I don't like url patterns that look like that /whatever/* - it is nothing wrong with them but I had issues in the past.
- in WEB-INF/classes (note the name is slightly different than what you got) you gotta put the compiled *.class file not the Java file. No issue if .java and .class are in the same folder although this is a bad practice, but you have to compile it first.
- root package is ok, should work. It is a (severely) discouraged practice, but for testing you should be fine.