I've got a simple controller in my Grails app with simple mappings...
TCacheController {
def index ={}
def list= {}
}
"/tcache/" (controller: "TCache"){
action = [GET: "index"]
}
"/tcache/items" (controller: "TCache"){
action = [GET: "list"]
}
All of my URL's are of the form http://.../tcache/*, and everything works fine. The problem arises when I use <g:actionSubmit> in a view like this...
<g:form controller="TCache">
<g:actionSubmit class="delete" action="list" value="List Items">
The submit works, but in my list action I have a redirect in case something goes wrong, and that redirect is resulting in 404 because Grails is sending to /TCache/.., not /tcache/...
Under what circumstances is Grails changing upper/lower case of the URI, and is there a way to force it to always use /tcache? I tried using controller="tcache" in the form, but then the action stops working, probably because Grails can't find the controller.
listaction basically goes and gets some data then does arender[view:'list']which goes tolist.gsp. If any exceptions occur in the action, I catch it and do aredirect(action:'index'), and that's when I get the 404 because it tries to redirect to/TCache/...when it should be redirecting to/'tcache/..., I'm trying to figure why it's using upper case. - raffian