This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sendError method - page not found?

Richard Agnes
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just new to servlets having just set up environment the other day. In my doPost Method of an HttpServlet I have:
switch (err)
res.sendError(HttpServletResponse.SC_BAD_REQUEST, "information already on file");
res.sendError(HttpServletResponse.SC_BAD_REQUEST, "information not on file");
however when the code executes I get a page not found error instead of the error message, could someone suggest why, is it something to do with my configuration?
edit: I just noticed that the error page does have the correct error code. does this mean IE 5.0 only has a generic message?
thanks in advance.
[This message has been edited by Richard Agnes (edited July 12, 2001).]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic