aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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