• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does container must return 404 error

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Marc. Using intercepting filter makes sense.
 
reply
    Bookmark Topic Watch Topic
  • New Topic