开发者

Grails set homepage and disable back button

I have two simple question i couldnt managed to find the answer in the internet. There are:

a) how can i set grails mainpath to, for example, controller "cnt" action "action", instead of index.gsp (im using netbeans)

b) how can i not allow 开发者_Python百科page backward in my website?


a) how can i set grails mainpath to, for example, controller "cnt" action "action", instead of index.gsp (im using netbeans)

If you want to change the start page you can do this in UrlMappings.groovy

class UrlMappings {

    static mappings = {
        "/"(controller:"cnt", action:"action")
    }
}

b) how can i not allow page backward in my website?

impossible

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜