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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -