• Post Reply Bookmark Topic Watch Topic
  • New Topic

getParameterNames curious behaviour  RSS feed

 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm having a problem with the names of my form elements as returned to me in an Enumeration by getParameterNames().
This is my HTML:

and this is my JSP

and this is my result from strOutput:
delete
artikel_id
accessory_del15.x
So what's going on with the INPUT type=image? Why the .x on the end of its name? Does it think it's some sort of array? If so why and anyway, how can I sort this one out?
Any help appreciated!
Adam
 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
when a form is submitted all form elements are submitted.
now the image.x filed refers to the x cordinate of the image
..regards
..saj
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aha. i guess i look pretty dumb - but i had a break in the loop to stop the looping when i found a field that started with that prefix - so i never saw the accessory_id29.y
i like to think i would have realised, if i'd seen the .y
thanks!
adam
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!