I know that in HTML, if we have a button, then we want to link it to another page, From which we can use the following tags: & lt; A href = "#" & gt; Button & lt; / A & gt;
Although I tried to do this for the people doing this work, it is taking me to an empty page:
In view / admin / admin .gsp I have a button that I / admin / gm.gsp
& lt; Li & gt; & Lt; A href = "user \ mzein \ file_down \ grails-app \ ideas \ admin \ gm.gsp" & gt; GM & lt; / A & gt; & Lt; / Li & gt; I also received & lt; G: link & gt;
Tags:
& lt; G: link resource = "gm" & gt;
But this was not working and did not take me for a path page error. Is the problem I'm designing the wrong path? Or is not it how it works in greases?
I know how to use controllers, but is it only going from one page to another?
I use url mapping for such a task
class UrlMappings {static mapping = {"/ $ controller / $ action? / $ Id? (. $ Format)" "}": "}" / "/" (Resource: 'gm')}}
You < Li> attribute like createLink
tag
.
$ {CreateLink (uri: 'somepath / gm.gsp')} & gt; GM
< P> Edit: OK you need to map the request as the file "/ foo / bar" ( See: "Path / Test")
and g: link
make this a similar request
& lt; G: link controller = "foo" action = "bar" name = "someName"> GM & lt; / G: link & gt;
and path is the path to the directory in the View folder that contains test.gsp .
No comments:
Post a Comment