This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Problem in setter method of    html:optionsCollection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in setter method of    html:optionsCollection" Watch "Problem in setter method of    html:optionsCollection" New topic
Author

Problem in setter method of html:optionsCollection

Raghava Nagaraj
Greenhorn

Joined: Nov 05, 2004
Posts: 8
Hi Everybody

I am new to Struts,
however I Using <html ptionsCollection in JSp Page, Getter methods returns List Object , accessing values from the Database,

Values are Displayed in the JSp Page in the List Box, If i Change the Label and Submit, the values are not reflected on the Database , However i Am Using Update Query in the setter method of the optionsCollection property.
I don't no the is setter method for option Collection works or Not,

Please help me to Come out of this Problem
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Only the getter method is called for an <htmlptionsCollection> tag. It is the property of the <html:select> tag that determines which setter gets called.


Merrill
Consultant, Sima Solutions
 
wood burning stoves
 
subject: Problem in setter method of html:optionsCollection