You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Prashant Punekar <Pr...@mindtree.com> on 2010/04/13 23:02:53 UTC

request-redirect !

Hi  All,

Here is the request-map from the controller file:

<request-map uri="enterCardDetails">
        <security https="false" auth="false"/>
        <event type="groovy" path="component://pjweb/webapp/pjweb/WEB-INF/actions/" invoke="SellSettings.groovy"/>
        <response name="success" type="request-redirect" value="enterCardDetailsInternal">
        <redirect-parameter name="selectOffer"/>
        <redirect-parameter name="productId"/>
        <redirect-parameter name="forMiniSite"/>
            <redirect-parameter name="minisitePartner"/>
        </response>
        <response name="error" type="view" value="errorScreen"/>
</request-map>

I want to understand the attribute type="request-redirect"(highlighted in yellow color) in the response tag.

To my understanding this will create a new request and pass only the redirect-parameters as part of the new request.

In other words, it similar to response.sendRedirect() and not RequestDispatcher.forward() as in JSP.

Please confirm.

Regards,
Prashant


________________________________
http://www.mindtree.com/email/disclaimer.html

Re: request-redirect !

Posted by Scott Gray <sc...@hotwaxmedia.com>.
Actually that isn't entirely true, a response of type "request" is somewhat similar to a forward except that you can only forward to a URI within the current controller.

Regards
Scott

On 15/04/2010, at 1:11 PM, Scott Gray wrote:

> There isn't one!
> 
> Regards
> Scott
> 
> HotWax Media
> http://www.hotwaxmedia.com
> 
> On 15/04/2010, at 12:39 PM, Prashant Punekar wrote:
> 
>> Thanks Brajesh,
>> 
>> Please let me know the tags/attribute similar to jsp->RD.forward().
>> 
>> Regards,
>> Prashant
>> 
>> 
>> -----Original Message-----
>> From: Brajesh Patel [mailto:brajeshpatel07@gmail.com] 
>> Sent: Tuesday, April 13, 2010 9:43 PM
>> To: user@ofbiz.apache.org
>> Subject: Re: request-redirect !
>> 
>> Hi Prashant,
>> It is similar to the response.sendRedirect().
>> 
>> -- 
>> Thanks
>> Brajesh Patel
>> 
>> HotWax Media
>> http://www.hotwaxmedia.com
>> 
>> On Wed, Apr 14, 2010 at 2:32 AM, Prashant Punekar <
>> Prashant_Punekar@mindtree.com> wrote:
>> 
>>> Hi  All,
>>> 
>>> Here is the request-map from the controller file:
>>> 
>>> <request-map uri="enterCardDetails">
>>>      <security https="false" auth="false"/>
>>>      <event type="groovy"
>>> path="component://pjweb/webapp/pjweb/WEB-INF/actions/"
>>> invoke="SellSettings.groovy"/>
>>>      <response name="success" type="request-redirect"
>>> value="enterCardDetailsInternal">
>>>      <redirect-parameter name="selectOffer"/>
>>>      <redirect-parameter name="productId"/>
>>>      <redirect-parameter name="forMiniSite"/>
>>>          <redirect-parameter name="minisitePartner"/>
>>>      </response>
>>>      <response name="error" type="view" value="errorScreen"/>
>>> </request-map>
>>> 
>>> I want to understand the attribute type="request-redirect"(highlighted in
>>> yellow color) in the response tag.
>>> 
>>> To my understanding this will create a new request and pass only the
>>> redirect-parameters as part of the new request.
>>> 
>>> In other words, it similar to response.sendRedirect() and not
>>> RequestDispatcher.forward() as in JSP.
>>> 
>>> Please confirm.
>>> 
>>> Regards,
>>> Prashant
>>> 
>>> 
>>> ________________________________
>>> http://www.mindtree.com/email/disclaimer.html
>>> 
> 


Re: request-redirect !

Posted by Scott Gray <sc...@hotwaxmedia.com>.
There isn't one!

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/04/2010, at 12:39 PM, Prashant Punekar wrote:

> Thanks Brajesh,
> 
> Please let me know the tags/attribute similar to jsp->RD.forward().
> 
> Regards,
> Prashant
> 
> 
> -----Original Message-----
> From: Brajesh Patel [mailto:brajeshpatel07@gmail.com] 
> Sent: Tuesday, April 13, 2010 9:43 PM
> To: user@ofbiz.apache.org
> Subject: Re: request-redirect !
> 
> Hi Prashant,
> It is similar to the response.sendRedirect().
> 
> -- 
> Thanks
> Brajesh Patel
> 
> HotWax Media
> http://www.hotwaxmedia.com
> 
> On Wed, Apr 14, 2010 at 2:32 AM, Prashant Punekar <
> Prashant_Punekar@mindtree.com> wrote:
> 
>> Hi  All,
>> 
>> Here is the request-map from the controller file:
>> 
>> <request-map uri="enterCardDetails">
>>       <security https="false" auth="false"/>
>>       <event type="groovy"
>> path="component://pjweb/webapp/pjweb/WEB-INF/actions/"
>> invoke="SellSettings.groovy"/>
>>       <response name="success" type="request-redirect"
>> value="enterCardDetailsInternal">
>>       <redirect-parameter name="selectOffer"/>
>>       <redirect-parameter name="productId"/>
>>       <redirect-parameter name="forMiniSite"/>
>>           <redirect-parameter name="minisitePartner"/>
>>       </response>
>>       <response name="error" type="view" value="errorScreen"/>
>> </request-map>
>> 
>> I want to understand the attribute type="request-redirect"(highlighted in
>> yellow color) in the response tag.
>> 
>> To my understanding this will create a new request and pass only the
>> redirect-parameters as part of the new request.
>> 
>> In other words, it similar to response.sendRedirect() and not
>> RequestDispatcher.forward() as in JSP.
>> 
>> Please confirm.
>> 
>> Regards,
>> Prashant
>> 
>> 
>> ________________________________
>> http://www.mindtree.com/email/disclaimer.html
>> 


RE: request-redirect !

Posted by Prashant Punekar <Pr...@mindtree.com>.
Thanks Brajesh,

Please let me know the tags/attribute similar to jsp->RD.forward().

Regards,
Prashant


-----Original Message-----
From: Brajesh Patel [mailto:brajeshpatel07@gmail.com] 
Sent: Tuesday, April 13, 2010 9:43 PM
To: user@ofbiz.apache.org
Subject: Re: request-redirect !

Hi Prashant,
It is similar to the response.sendRedirect().

-- 
Thanks
Brajesh Patel

HotWax Media
http://www.hotwaxmedia.com

On Wed, Apr 14, 2010 at 2:32 AM, Prashant Punekar <
Prashant_Punekar@mindtree.com> wrote:

> Hi  All,
>
> Here is the request-map from the controller file:
>
> <request-map uri="enterCardDetails">
>        <security https="false" auth="false"/>
>        <event type="groovy"
> path="component://pjweb/webapp/pjweb/WEB-INF/actions/"
> invoke="SellSettings.groovy"/>
>        <response name="success" type="request-redirect"
> value="enterCardDetailsInternal">
>        <redirect-parameter name="selectOffer"/>
>        <redirect-parameter name="productId"/>
>        <redirect-parameter name="forMiniSite"/>
>            <redirect-parameter name="minisitePartner"/>
>        </response>
>        <response name="error" type="view" value="errorScreen"/>
> </request-map>
>
> I want to understand the attribute type="request-redirect"(highlighted in
> yellow color) in the response tag.
>
> To my understanding this will create a new request and pass only the
> redirect-parameters as part of the new request.
>
> In other words, it similar to response.sendRedirect() and not
> RequestDispatcher.forward() as in JSP.
>
> Please confirm.
>
> Regards,
> Prashant
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>

Re: request-redirect !

Posted by Brajesh Patel <br...@gmail.com>.
Hi Prashant,
It is similar to the response.sendRedirect().

-- 
Thanks
Brajesh Patel

HotWax Media
http://www.hotwaxmedia.com

On Wed, Apr 14, 2010 at 2:32 AM, Prashant Punekar <
Prashant_Punekar@mindtree.com> wrote:

> Hi  All,
>
> Here is the request-map from the controller file:
>
> <request-map uri="enterCardDetails">
>        <security https="false" auth="false"/>
>        <event type="groovy"
> path="component://pjweb/webapp/pjweb/WEB-INF/actions/"
> invoke="SellSettings.groovy"/>
>        <response name="success" type="request-redirect"
> value="enterCardDetailsInternal">
>        <redirect-parameter name="selectOffer"/>
>        <redirect-parameter name="productId"/>
>        <redirect-parameter name="forMiniSite"/>
>            <redirect-parameter name="minisitePartner"/>
>        </response>
>        <response name="error" type="view" value="errorScreen"/>
> </request-map>
>
> I want to understand the attribute type="request-redirect"(highlighted in
> yellow color) in the response tag.
>
> To my understanding this will create a new request and pass only the
> redirect-parameters as part of the new request.
>
> In other words, it similar to response.sendRedirect() and not
> RequestDispatcher.forward() as in JSP.
>
> Please confirm.
>
> Regards,
> Prashant
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>