-
Jul 17th, 2012, 03:11 AM
#1
The request sent by the client was syntactically incorrect ().
Hello, please help me, what is the problem?
@Controller
@RequestMapping(Array("/documents/{documentId}/versions/{versionId}"))
class DocumentVersionController {
@RequestMapping(method=Array(RequestMethod.GET))
def show = "versions/show"
}
And I visit the url: http://localhost:8080/App/documents/1/versions/4
But I got the "The request sent by the client was syntactically incorrect (). " error.
But another controller
@Controller
@RequestMapping(Array("/projects/{projectId}/districts/{districtId}"))
class DistrictController {
@RequestMapping(method=Array(RequestMethod.GET))
def show = "districts/show"
}
and the URL "http://localhost:8080/App/projects/1/districts/2" works fine.
Last edited by truelixin; Jul 17th, 2012 at 03:25 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules