• 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

Pouplate list box of Struts 2 using ajax

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have used simple ajax call to get list of data from the server side and I am able to populate the values in
the list box but I am not able get the values on the form bean of struts2 the following is the way in which I populate
the list box

var option = document.createElement("Option")
option.appendstring(document.createTextNode(document.childnodes[0].value));

Request you to kindly send me ajax code to populate the list box
 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kiran chirravuru wrote:Hi
I have used simple ajax call to get list of data from the server side and I am able to populate the values in
the list box but I am not able get the values on the form bean of struts2 the following is the way in which I populate
the list box

var option = document.createElement("Option")
option.appendstring(document.createTextNode(document.childnodes[0].value));

Request you to kindly send me ajax code to populate the list box



Kiran,

I'm sure you will get response quickly, if you had moved this to right forum. Please move this to struts forum. By requesting code, you wouldn't do any help to yourself. Instead, please post how far did you go and what went wrong.
 
Ranch Hand
Posts: 122
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what your problem is since there is very little to go off of .... here is an example that I had


 
Whoever got anywhere by being normal? Just ask this exceptional 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