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! > > -- > 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 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 throw, like an exception? > > > > Thanks all! > > > > -- > > Frank W. Zammetti > > Founder and Chief Software Architect > > Omnytex Technologies > > http://www.omnytex.com > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]