Re: Sending different responses based on some conditions

2008-11-02 Thread Alfred Nathaniel
On Wed, 2008-10-29 at 17:15 +0100, Kjetil Kjernsmo wrote: > Hi all, > > I have a StatelessAppleController which does some simple checking on the data > it receives. In most cases, it should sendPage, but there are a few rare > situations where it should redirect or return a 502 HTTP code. > >

Sending different responses based on some conditions

2008-10-29 Thread Kjetil Kjernsmo
Hi all, I have a StatelessAppleController which does some simple checking on the data it receives. In most cases, it should sendPage, but there are a few rare situations where it should redirect or return a 502 HTTP code. This part of the code looks like this: if ("explain".equalsIgnore