• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does container must return 404 error

 
Napu Sun
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in HFSJ,
"if a J2EE1.4 compliant container receives a partial request for which it cannot find a match, it must return an HTTP 404 error code". For this statement, HFSJ thinks it is invalid.

I am just wondering are there any results the container can return when it cannot find something except for HTTP 404?

Thanks guys.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could create an Intercepting Filter to handle it yourself. I believe you can also specify a specific error page for 404 in the web.xml - in fact that's probably what we do here. Other than that, I can't think of any exceptions to the rule.
[ May 02, 2007: Message edited by: Marc Peabody ]
 
Napu Sun
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc. Using intercepting filter makes sense.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!