Conditional redirect from controller

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

Conditional redirect from controller

Varun Bhansaly
Hi,
I have developed a custom service which would send different values
for an OUT param.
Depending on the value of the OUT param, the controller should
redirect to the appropriate view.

Please let me know if such conditional redirect is possible & has any
precedence in existing components.

--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Sascha Rodekamp-3
Hi Varun,

jep thats possible. The controller can work with different response
messages, just return something different from success or error and make a
mapping in your request-map.

Cheers
Sascha


2010/5/28 varun bhansaly <[hidden email]>

> Hi,
> I have developed a custom service which would send different values
> for an OUT param.
> Depending on the value of the OUT param, the controller should
> redirect to the appropriate view.
>
> Please let me know if such conditional redirect is possible & has any
> precedence in existing components.
>
> --
> Regards,
> Varun Bhansaly
>



--
http://www.lynx.de
Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Varun Bhansaly
Thanks Sascha, could u plz help further by pasting some example code.

On Fri, May 28, 2010 at 2:19 PM, Sascha Rodekamp
<[hidden email]> wrote:

> Hi Varun,
>
> jep thats possible. The controller can work with different response
> messages, just return something different from success or error and make a
> mapping in your request-map.
>
> Cheers
> Sascha
>
>
> 2010/5/28 varun bhansaly <[hidden email]>
>
>> Hi,
>> I have developed a custom service which would send different values
>> for an OUT param.
>> Depending on the value of the OUT param, the controller should
>> redirect to the appropriate view.
>>
>> Please let me know if such conditional redirect is possible & has any
>> precedence in existing components.
>>
>> --
>> Regards,
>> Varun Bhansaly
>>
>
>
>
> --
> http://www.lynx.de
>



--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Varun Bhansaly
Found the soln to the problem....method to be used is
ServiceUtil.returnMessage('MEESAGE_TO_BE_SENT_TO_CONTROLLER', null);

Thanks Sascha for the idea..

On Fri, May 28, 2010 at 4:25 PM, varun bhansaly <[hidden email]> wrote:

> Thanks Sascha, could u plz help further by pasting some example code.
>
> On Fri, May 28, 2010 at 2:19 PM, Sascha Rodekamp
> <[hidden email]> wrote:
>> Hi Varun,
>>
>> jep thats possible. The controller can work with different response
>> messages, just return something different from success or error and make a
>> mapping in your request-map.
>>
>> Cheers
>> Sascha
>>
>>
>> 2010/5/28 varun bhansaly <[hidden email]>
>>
>>> Hi,
>>> I have developed a custom service which would send different values
>>> for an OUT param.
>>> Depending on the value of the OUT param, the controller should
>>> redirect to the appropriate view.
>>>
>>> Please let me know if such conditional redirect is possible & has any
>>> precedence in existing components.
>>>
>>> --
>>> Regards,
>>> Varun Bhansaly
>>>
>>
>>
>>
>> --
>> http://www.lynx.de
>>
>
>
>
> --
> Regards,
> Varun Bhansaly
>



--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Patrick-4
In reply to this post by Varun Bhansaly
Hi Varun,
Look at this file

ecommerce/webapp/ecommerce/WEB-INF/controller.xml
<request-map uri="checkoutoptions"> <!-- mine is modified a bit, but
you can get the idea -->
  <security https="true" auth="true"/>
  <event type="java"
path="org.ofbiz.order.shoppingcart.CheckOutEvents"
invoke="setCheckOutPages"/>
  <response name="checkoutpickup" type="view" value="checkoutpickup"/>
  <response name="payment" type="request" value="setPoNumber"/>
  <response name="confirm" type="request" value="calcShipping"/>
  <response name="success" type="view"
value="checkoutshippingaddress"/>   <response name="error"
type="request" value="checkouterror"/>
</request-map>


On Fri, May 28, 2010 at 3:17 AM, varun bhansaly <[hidden email]> wrote:

> Hi,
> I have developed a custom service which would send different values
> for an OUT param.
> Depending on the value of the OUT param, the controller should
> redirect to the appropriate view.
>
> Please let me know if such conditional redirect is possible & has any
> precedence in existing components.
>
> --
> Regards,
> Varun Bhansaly
>
Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Varun Bhansaly
Thanks Patrick, I was aware of this where event type="java", was
specifically looking for event type="service" & found a soln. to that

On Fri, May 28, 2010 at 8:21 PM, Patrick <[hidden email]> wrote:

> Hi Varun,
> Look at this file
>
> ecommerce/webapp/ecommerce/WEB-INF/controller.xml
> <request-map uri="checkoutoptions"> <!-- mine is modified a bit, but
> you can get the idea -->
>  <security https="true" auth="true"/>
>  <event type="java"
> path="org.ofbiz.order.shoppingcart.CheckOutEvents"
> invoke="setCheckOutPages"/>
>  <response name="checkoutpickup" type="view" value="checkoutpickup"/>
>  <response name="payment" type="request" value="setPoNumber"/>
>  <response name="confirm" type="request" value="calcShipping"/>
>  <response name="success" type="view"
> value="checkoutshippingaddress"/>   <response name="error"
> type="request" value="checkouterror"/>
> </request-map>
>
>
> On Fri, May 28, 2010 at 3:17 AM, varun bhansaly <[hidden email]> wrote:
>> Hi,
>> I have developed a custom service which would send different values
>> for an OUT param.
>> Depending on the value of the OUT param, the controller should
>> redirect to the appropriate view.
>>
>> Please let me know if such conditional redirect is possible & has any
>> precedence in existing components.
>>
>> --
>> Regards,
>> Varun Bhansaly
>>
>



--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Matt Warnock
In reply to this post by Patrick-4
We just got a note from a major customer requiring that we become and be
certified EDI compliant for the following documents:
850 - Purchase Order
810 - Invoice
860 - PO Change
855 - PO Acknowledgement
I get the impression it's mostly a data mapping issue.  Their selected
vendor for EDI certification is SPScommerce.com.  The Certification
deadline is about 10 weeks away.

How tough/easy is this with ofbiz? anybody been there?
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.



Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

BJ Freeman
you can get around this by using an VAN supplier and interface to them
otherwise look ar $10,000 or more for certification.
Most VAN suppliers make there money on the interface to their VAN system
that are forms.

I use openas2 which is not ceritfied.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Matt Warnock sent the following on 5/28/2010 4:05 PM:

> We just got a note from a major customer requiring that we become and be
> certified EDI compliant for the following documents:
> 850 - Purchase Order
> 810 - Invoice
> 860 - PO Change
> 855 - PO Acknowledgement
> I get the impression it's mostly a data mapping issue.  Their selected
> vendor for EDI certification is SPScommerce.com.  The Certification
> deadline is about 10 weeks away.
>
> How tough/easy is this with ofbiz? anybody been there?

Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

BJ Freeman
Matt: also look are the
specialpurpose\oagis
it has code you can use.
the interface is REST you can Convert it to EDI the vans want.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


BJ Freeman sent the following on 5/28/2010 4:35 PM:

> you can get around this by using an VAN supplier and interface to them
> otherwise look ar $10,000 or more for certification.
> Most VAN suppliers make there money on the interface to their VAN system
> that are forms.
>
> I use openas2 which is not ceritfied.
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/28/2010 4:05 PM:
>> We just got a note from a major customer requiring that we become and be
>> certified EDI compliant for the following documents:
>> 850 - Purchase Order
>> 810 - Invoice
>> 860 - PO Change
>> 855 - PO Acknowledgement
>> I get the impression it's mostly a data mapping issue.  Their selected
>> vendor for EDI certification is SPScommerce.com.  The Certification
>> deadline is about 10 weeks away.
>>
>> How tough/easy is this with ofbiz? anybody been there?
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Matt Warnock
In reply to this post by BJ Freeman
Not the answer I was hoping for, but thanks BJ.  Guess I need to look
for a VAN, or use theirs.
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Fri, 2010-05-28 at 16:35 -0700, BJ Freeman wrote:

> you can get around this by using an VAN supplier and interface to them
> otherwise look ar $10,000 or more for certification.
> Most VAN suppliers make there money on the interface to their VAN system
> that are forms.
>
> I use openas2 which is not ceritfied.
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/28/2010 4:05 PM:
> > We just got a note from a major customer requiring that we become and be
> > certified EDI compliant for the following documents:
> > 850 - Purchase Order
> > 810 - Invoice
> > 860 - PO Change
> > 855 - PO Acknowledgement
> > I get the impression it's mostly a data mapping issue.  Their selected
> > vendor for EDI certification is SPScommerce.com.  The Certification
> > deadline is about 10 weeks away.
> >
> > How tough/easy is this with ofbiz? anybody been there?

Reply | Threaded
Open this post in threaded view
|

Re: Conditional redirect from controller

Matt Warnock
In reply to this post by BJ Freeman
Thanks again, I'll take a look.
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Fri, 2010-05-28 at 17:18 -0700, BJ Freeman wrote:

> Matt: also look are the
> specialpurpose\oagis
> it has code you can use.
> the interface is REST you can Convert it to EDI the vans want.
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> BJ Freeman sent the following on 5/28/2010 4:35 PM:
> > you can get around this by using an VAN supplier and interface to them
> > otherwise look ar $10,000 or more for certification.
> > Most VAN suppliers make there money on the interface to their VAN system
> > that are forms.
> >
> > I use openas2 which is not ceritfied.
> >
> > =========================
> > BJ Freeman
> > http://bjfreeman.elance.com
> > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > Specialtymarket.com <http://www.specialtymarket.com/>
> >
> > Systems Integrator-- Glad to Assist
> >
> > Chat  Y! messenger: bjfr33man
> > Linkedin
> > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
> >
> >
> > Matt Warnock sent the following on 5/28/2010 4:05 PM:
> >> We just got a note from a major customer requiring that we become and be
> >> certified EDI compliant for the following documents:
> >> 850 - Purchase Order
> >> 810 - Invoice
> >> 860 - PO Change
> >> 855 - PO Acknowledgement
> >> I get the impression it's mostly a data mapping issue.  Their selected
> >> vendor for EDI certification is SPScommerce.com.  The Certification
> >> deadline is about 10 weeks away.
> >>
> >> How tough/easy is this with ofbiz? anybody been there?
> >
> >

Reply | Threaded
Open this post in threaded view
|

EDI and VANS was Conditional redirect from controller

BJ Freeman
In reply to this post by Matt Warnock
I should clarify that openas2 has been certified by users, just the app
 is not certified OOTB.
there are a couple of VAN suppliers that will do the integration you
need for a hefty price. A couple will put on your monthly charges,
spread out over a year.
The customer will be looking at about $3,000, upfront, non returnable,
just to get a VAN account and then monthly data transfer with a minimum
of about $150 a month.
EDI VAN are relics and pricey.

=====================

BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Matt Warnock sent the following on 5/29/2010 11:43 AM:
> Not the answer I was hoping for, but thanks BJ.  Guess I need to look
> for a VAN, or use theirs.

Reply | Threaded
Open this post in threaded view
|

Re: EDI and VANS was Conditional redirect from controller

Matt Warnock
Yeah, I'm not crazy about the choice, but my chances of changing Vitamin
Shoppe's mind is about nil. :/

I just have to certify with their VAN vendor.  Guess I'll find out what
they want first, then shop around.
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Sun, 2010-05-30 at 06:16 -0700, BJ Freeman wrote:

> I should clarify that openas2 has been certified by users, just the app
>  is not certified OOTB.
> there are a couple of VAN suppliers that will do the integration you
> need for a hefty price. A couple will put on your monthly charges,
> spread out over a year.
> The customer will be looking at about $3,000, upfront, non returnable,
> just to get a VAN account and then monthly data transfer with a minimum
> of about $150 a month.
> EDI VAN are relics and pricey.
>
> =====================
>
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/29/2010 11:43 AM:
> > Not the answer I was hoping for, but thanks BJ.  Guess I need to look
> > for a VAN, or use theirs.