Grails giving me 404 on controller when submitting form -
i have basic controller, this:
class bookingcontroller { def periodcheck(){ } def periodinput(){ } both booking/periodcheck.gsp , booking/periodinput.gsp have been created, , they work if access typing url directly.
however, have form in periodinput.gsp supposed send data periodcheck, , every time, when send form, 404 error, saying the requested resource (/hoteledison/booking/periodcheck) not available. form defined this:
<g:form action="periodcheck"> <!-- here go fields --> <g:actionsubmit class="btn" value="comprobar" /> </g:form> what doing wrong? i've tried defining allowedmethods in controller, not help.
ok, according this blog post, there's difference between using actionsubmit , submitbutton. forms mine, 1 action, should have used later.
now it's working.
Comments
Post a Comment