Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form not loaded properly in struts2

 
Jyothsna Panchagnula
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

The requirement is , I need to display the from with some input data..
depending on the selection of select tag I need to get the data from the database and populate another select tag.
I am using struts 2 and I am submitting the page using javascript to fetch the values.
but the problem is that the page is not loaded fully.The gets loaded where the data is static.
When is comes to population of data from the database it does not load properly.
I am not able to get a solution for this problem

cAn any one help me out. its very urgent!!!

Also I getthe following error when I populated country list




jyothsna
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can anybody help? You've provided no code, configuration, JSP, or JavaScript, and don't even say how it doesn't work.
 
vishwa venkat
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before forwarding to this page, make sure the countryList object is initialized. atleast assign an empty arraylist object. Struts2 expects to have the list being initilized in the input action class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic