SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
Bosun Bello wrote:My advice to you would be to make sure your servlet class is in a package
naveen yadav wrote: Reason for not using package was that the servlet container will look for servlet in \WEB-INF\class directory by default.
Khalil Salman wrote:Change action=”org.HelloWorld” to action=”poi”. Because poi is the name of your HelloWorld servlet.
naveen yadav wrote:
here is web.xml under \WEB-INF dir.
Still getting same error.
Daniel Val wrote:url pattern must be something /HellowWorld/* something like that, not what you have there
I don't like url patterns that look like that /whatever/* - it is nothing wrong with them but I had issues in the past.
Bear Bibeault wrote:
You can argue with us, or you can learn how to do things correctly. The choice is yours.
It's always helpful to learn from your mistakes because then your mistakes seem worthwhile.
Garry Marshall
Bear Bibeault wrote:
Daniel Val wrote:url pattern must be something /HellowWorld/* something like that, not what you have there
Nope. It can be what he has there -- though I would strongly advise against using ".html"
Bear Bibeault wrote:
I don't like url patterns that look like that /whatever/* - it is nothing wrong with them but I had issues in the past.
There should be no issues and it is a more modern approach than the old-fashioned *.do patterns. If you had issues it was not due to the type of pattern used.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|