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
Post a Comment