coldfusion - SES URL feature of Mach ii not working properly -


i have defined following properties in mach-ii.xml file:

<property name="urlparseses" value="true" /> <property name="urldelimiters" value="/|/|/" /> <property name="urlbase" value="index.cfm" /> 

and in index.cfm page there link

<a href=#buildurl("showuser", "id=#user_id#")#>view user</a> 

in listener getting error "element id undefined in url." whereas can see parameter id , value in url. know why getting error? other problem is, when clicking on other links in page, keep on appending link in url instead of making new url. first time when loading site loads css , js after clicking on link breaks css , js.

please help.

you should referencing id value in listener part of current event structure (ie; arguments.event.getarg("id")), not url scope (ie; url.id).

your urlbase value should absolute webroot, if app @ base of webroot, urlbase value /index.cfm or if app inside folder called myapp off webroot, urlbase value /myapp/index.cfm


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -