2.3 ses url

Hi I am trying to deal with ses url.
Anythign work file up to when I try to redirct my event.
I am trying this:

I point to go.coldspring from my link.
In this method I redirect like that:

<cfset setNextEvent(route = 'ehAssets.readColdSpringMin', varStruct =
rc) />

Here coldbox skip looking for a default go/index that do not
exists.......
I I use
<cfset setNextRoute(route = 'ehAssets/readColdSpringMin', varStruct =
rc) />

Event fires but my url poit to last event in teh chain:

/index.cfm/ehAssets/readColdSpringMin

Any suggestion???

I use last svn version....I like to stay tuned...

Andrea

www.andreacfm.com

Andrea,

I’m not 100% sure I understand what you’re trying to do, but I do notice one problem:

<cfset setNextEvent(route = ‘ehAssets.readColdSpringMin’, varStruct =
rc) />

setNextEvent() uses the ‘event’ argument, not the ‘route’ argument. Not sure if that is the cause of your issue or not, but it definitely stood out to me.

HTH

This comes from wiki:

Now, please note that this method is only for routing. If you want to
use a method that can encompass both scenarios then use setNextEvent
(). Since version 2.6.2, setNextEvent() supports both normal event
syntax and route redirection. The persist and varStruct arguments
apply the same as setNextEvent().

Says that to support both ses and not ses we can use setnextEvent()
also with setNextRoute() arguments.

Andrea

This comes from wiki:

Now, please note that this method is only for routing. If you want to
use a method that can encompass both scenarios then use setNextEvent
(). Since version 2.6.2, setNextEvent() supports both normal event
syntax and route redirection. The persist and varStruct arguments
apply the same as setNextEvent().

Says that to support both ses and not ses we can use setnextEvent()
also with setNextRoute() arguments.

Andrea

Yes, it supports the syntax of either event (handler.event) or route (handler/event). It still requires the event argument though.

This comes from wiki:

Now, please note that this method is only for routing. If you want to
use a method that can encompass both scenarios then use setNextEvent
(). Since version 2.6.2, setNextEvent() supports both normal event
syntax and route redirection. The persist and varStruct arguments
apply the same as setNextEvent().

Says that to support both ses and not ses we can use setnextEvent()
also with setNextRoute() arguments.

Andrea

Ok but this should run :

<cfset setNextRoute(route = 'ehAssets/readColdSpringMin', varStruct
=rc) />

or did I loose something??

Andrea

Ok but this should run :

<cfset setNextRoute(route = 'ehAssets/readColdSpringMin', varStruct
=rc) />

or did I loose something??

Andrea

I’m not understanding your question.

<cfset setNextRoute(route=‘ehAssets/readColdSpringMin’,varStruct=rc) />

Do you have that route defined in your routes.cfm file? Any time you use setNextRoute(), the route must exist in your routes.cfm file. I’m guessing that it does not, since that appears to be a normal event rather than a route.

Probably I am loosing mysel....do you have any example on how do I
have to set my route in routes.cfm??

Thanks

Andrea

http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbSESGuide#Theroutesconfigurationfile