File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does container must return 404 error

 
Napu Sun
Ranch Hand
Posts: 33
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc. Using intercepting filter makes sense.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic