Grails打开空页时没有错误

Grails打开空页时没有错误,grails,Grails,问这样一个琐碎的问题我感到很尴尬,但我已经用尽了所有的选择,谷歌也没有帮我。我有以下url映射代码: static mappings = { "/$controller/$action?/$id?"{ constraints { } } "/"(controller:'news', action:'index') "500"(view:'/error') } 和控制器类: def index() { redirect(action: 'resul

问这样一个琐碎的问题我感到很尴尬,但我已经用尽了所有的选择,谷歌也没有帮我。我有以下url映射代码:

static mappings = {
    "/$controller/$action?/$id?"{
        constraints {
    }
}
"/"(controller:'news', action:'index')
    "500"(view:'/error')
}
和控制器类:

def index() {
    redirect(action: 'result')
}
private doRender(Map params = [:].withDefault { [:] }) {
    def viewPath = "/mobile/news/front/front"

    def completeModel = getDefaultModel() + params.model

    render(view: viewPath,
            model: completeModel)
}
GSP页面存在并位于以下路径:
views/mobile/news/front/front.GSP
运行应用程序后,我尝试打开以下URL:
http://localhost:8080/
我得到的是空页,没有任何错误。我搞不清楚这是什么,完全缺乏反馈让我很难受。 哪里有日志我可以查?还有,我有什么明显的遗漏吗


谢谢,亚历克斯

页面
http://localhost:8080/当您在计算机上以运行应用程序模式运行Grails时,
在Firefox中始终为空。它与url映射等无关。

是否有“结果”操作?您刚刚显示了一个私有的“doRender”方法。您是否将上下文更改为“/”?默认url不是redirect()方法调用result()方法,result()方法反过来调用doRender()方法。是的,我将上下文更改为“/”。您需要显示所有代码。您的控制器中应该只有前向操作。显示result()方法。实际上,这是我所有的代码。