I fear I should know this answer, but...
How can one, from a servlet (or Struts Action maybe) throw a specific
HTTP return code? I need to return a 403 from a servlet if certain things
are not present in the request... is it just a matter of setting a
particular header, or is there something to
Yep, I *should* have known that :)...
The sendError() method of HttpServletRequest does it. Sorry for wasted
bandwidth!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Tue, May 31, 2005 3:13 pm, Frank W. Zammetti said:
I fear I should
Just a small note, Frank. You use sendError(int sc) for errors but
setStatus(int sc) for codes that are not errors.
On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Yep, I *should* have known that :)...
The sendError() method of HttpServletRequest does it. Sorry for wasted
bandwidth!
Cool, good to know there is a difference. Thanks!
Frank
Dakota Jack wrote:
Just a small note, Frank. You use sendError(int sc) for errors but
setStatus(int sc) for codes that are not errors.
On 5/31/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Yep, I *should* have known that :)...
The