This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Form not loaded properly in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form not loaded properly in struts2" Watch "Form not loaded properly in struts2" New topic

Form not loaded properly in struts2

Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
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

David Newton

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 22, 2003
Posts: 185
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Form not loaded properly in struts2
Similar Threads
How to fill up JSONArray data inside the select tag of JSP Page
Populating dropdown menu based on another
Struts2 label tag - key attribute is being replaced with actual value?
2 Select Box`s on one page, second needs to load dynamically
How to retrieve data from database when ever select in drop down list?