not sure of the "right" way myself... but you could always make the
action page a "normal" .cfm page and call the CFC's method from that
action page (passing the entire form struct as an argument)... and
your <cflocation> in that same page.

On 7/11/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote:
> I am pretty new to using ColdFusion components but I am trying to start doing 
> all my inserts and queries with them.
>
> In the past I would always submit my forms to another .cfm page (usually 
> called action). On that page I would do my SQL inserts or whatever and then 
> put a <cflocation> at the bottom that directed the browser to the proper 
> destination page. I am not really sure if this is best practice coding but it 
> always worked for me.
>
> When using components it seems like I should be submitting the form to the 
> .cfc by making it the action page of the form. That all works fine and the 
> database inserts are working but the browser ends up on the .cfc page. I am 
> not sure the best way to redirect to the proper .cfm destination page. 
> Normally the destination page will be different depending on the source page.
>
> I hope this all makes sense.
>
> Any help on this would be greatly appreciated.
>
> Thanks in advance.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283513
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to