• 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

submission problem

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have a dropdownlist whose values I am getting from database through bean.
Now I have to submit this value to java class one at a time.
I am using onchange for submitting the value from dropdown to java class.so when user changes the value in dropdown I get the results.

But when user selects the current value as the value to be submitted nothing happens means that current value is not submitted.

code for submission is like this

function submitRegion()
{
document.regionForm.submit();
} here regionform where geeter and setter methods are

regards
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well you my want to put a line like "Select a fruit" at the top so you will not have this issue. And give it a value of -1. Or you can use onblur instead of onchange.

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic