Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in setter method of html:optionsCollection

 
Raghava Nagaraj
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic