lksudha / gravl

Automatically exported from code.google.com/p/gravl
0 stars 0 forks source link

url encoding on form #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in properties.gsp on line 19 the action:

action="admin/updateProperties"

the slash gets url ecoded, preventing saving the form. So far other forms
seem to be OK.

grails 1.0.3
firefox 3
winxp
tomcat 6

Original issue reported on code.google.com by pocke...@gmail.com on 8 Jul 2008 at 4:07

GoogleCodeExporter commented 9 years ago
correction, editing a post (I tried editing the sample) resulted in the same 
thing:

sample%2Fadmin%2Fblog/save

Original comment by pocke...@gmail.com on 8 Jul 2008 at 4:27

GoogleCodeExporter commented 9 years ago
I have a fix. in grails-1.0.3 you can't specify a url for the action on the 
taglib.
The solution is to change this to a regular form tag like:

<form action="updateProperties">

Same goes for the edit.gsp page:

<form action="save">

Original comment by pocke...@gmail.com on 8 Jul 2008 at 8:28