I have to show last value of the html:select as default vale in the form.How can i show that plz help me..
In the collection ,imagine there are three values, Orange,Grape,Apple I have to show the last one Apple in the combo box.
Thanks in advance.
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
posted 9 years ago
If you're using <htmlptions> along with your <html:select>, the option selected will be the option that matches the value in the ActionForm property you specified in the <html:select tag. So, if you specified: