• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

problem with form reset

Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've written a TLD for rendering dropdown in jsp page .
The tag takes Map with key / value in it for rendering the list.
optionally we can pass key / value to display as selected item.
here is the sample jsp code snipet :

the first one renders dropdown with some data selected and the other without selection.

The problem is, when I reset my form , the dropdown is with no selection , regardless of it contained some data initially or not.
I wanted to retain the data in case it was there .

here is the code for tld ..

what could be the possible reason ?
some help pls.

[ October 11, 2006: Message edited by: Bear Bibeault ]
Posts: 67447
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A form reset occurs on the client, so showing us the server-side code is not helpful. What HTML for the select element is being sent to the browser?
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic