Announcement Announcement Module
No announcement yet.
"key" name for the id gives errors on submit Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • "key" name for the id gives errors on submit

    Hello all,

    here is what I observed:

    I have a class "Group" whose identifier is a string named "key", with accessors getKey() and setKey().
    When I want to update it from my "groupForm.jsp", it doesn't work. After some research, I found out that the key was transformed to "TEST,TEST" when I entered "TEST" as key. It was transformed before the onSubmit call of my "GroupSaver" controller.

    When I rename the field "id" or "keyid", it works well. :roll:

    Have you experienced similar behaviours ?
    Is "key" a reserved word ?

    Pierre A.

  • #2
    Are you sending key to the form like this "myform.htm?key=test"? I think that would cause value key to show up twice in your request.