다른 파일이있는 폴더가 있습니다. 내가 경로 얻기 위해이 방법을 사용하고 http://myserver.com/foo/bar/test.htmlGrails : URL 매핑 - 파일 확장자를 전달하는 방법?
: 나는 이런 식으로 뭔가를 사용하려면
"/excursion/$path**" (controller:"excursion", action:"sweet")
을하지만 어떻게 절단 파일 확장자를 사용하지 ... 파일 확장자하지 데 도움이됩니까?
P.
class ExcursionController {
def defaultAction = "sweet"
def sweet = {
render "${params.path}"
}
}
요청 http://myserver.com/excursion/foo/bar/test.html
결과입니다 확장자 :(무엇