Response status problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Response status problem

Ajay Lashkari
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
Reply | Threaded
Open this post in threaded view
|

Re: Response status problem

Scott Gray-2
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


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Response status problem

Rajmander Matharu
In reply to this post by Ajay Lashkari
Stop non Sense Ofbiz
On 7/27/11, Ajay Lashkari <[hidden email]> 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