You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ajay Lashkari <aj...@gmail.com> on 2011/07/27 09:53:45 UTC

Response status problem

Hi All,

I want to set the Response status 400 in the groovy and result should be
displayed on the ftl. On screen i am using conditional check. For this i
have written fail-widgets code in the screen. when i am using
response.setStatus(response.SC_BAD_REQUEST); in the groovy it is showing
"null" value of it. So  please give me your suggestions that how can i solve
it. Thanks in advance.


Thanks & Regards,
Ajay Lashkari

Re: Response status problem

Posted by Rajmander Matharu <ra...@gmail.com>.
Stop non Sense Ofbiz
On 7/27/11, Ajay Lashkari <aj...@gmail.com> wrote:
> Hi All,
>
> I want to set the Response status 400 in the groovy and result should be
> displayed on the ftl. On screen i am using conditional check. For this i
> have written fail-widgets code in the screen. when i am using
> response.setStatus(response.SC_BAD_REQUEST); in the groovy it is showing
> "null" value of it. So  please give me your suggestions that how can i solve
> it. Thanks in advance.
>
>
> Thanks & Regards,
> Ajay Lashkari
>


-- 
From:
Rajmander Singh Matharu
Software Developer
Consagous Technologies Pvt Ltd Indore
http://www.consagous.com

Re: Response status problem

Posted by Scott Gray <sc...@hotwaxmedia.com>.
If you're trying to do this from within the screen widget then it is too late at that point because the response has moved past that point.  You'll need to do it from a request event.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 27/07/2011, at 7:53 PM, Ajay Lashkari wrote:

> Hi All,
> 
> I want to set the Response status 400 in the groovy and result should be
> displayed on the ftl. On screen i am using conditional check. For this i
> have written fail-widgets code in the screen. when i am using
> response.setStatus(response.SC_BAD_REQUEST); in the groovy it is showing
> "null" value of it. So  please give me your suggestions that how can i solve
> it. Thanks in advance.
> 
> 
> Thanks & Regards,
> Ajay Lashkari