tags:

views:

40

answers:

1

Using grails 1.2.1 this should be very simple, but still I can't get it to work.

In my application /grails-app/views I've added mypage.gsp

Plus

"/mypage"(view:"mypage")

to the mappings block of my URLMapping class.

while

http://server-name:8080/myapp/mypage.gsp

works

I'm still getting 404 - page not found when I try to open

http://server-name:8080/myapp/mypage

Thanks, Guy

A: 

Can you post your URLMappings? I'm wondering if there is another mapping that it is using instead.

zentuit
in a newly created application grails-app/conf/UrlMappings.groovychange "/"(view:"/index") to "/index"(view:"/index")trying to browse to http://localhost:8080/test/index fails while http://localhost:8080/test/index.gsp succeeds
Guy