Grails show my URL in controller -


i pulling components of url. used request.getrequesturl(), url looks wrong: it's missing id, example.

i'm getting this::

..//apka/grails/aaa/edit.dispatch" 

but need this:

..//apka/grails/aaa/edit/34" 

do have solutions?

you can information require request.forwarduri, grails specific addition usual httpservletrequest. result you're getting request.requesturl result of url mapping mechanism, , kind of "canonical form" /grails/controller/action.dispatch. forwarduri went in url mapping mechanism, i.e. uri user requested.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -