• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getParameterNames curious behaviour

 
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic