Re: How to display both selected key and value of s:select

2018-12-27 Thread albert kao
> foreach (c in countryList) if(c.countryId==selectedCountry) return c; > } > ... > } > > > > Thanks for using Struts. > > Kind Regards. > > >-Original Message- > >From: albert kao > >Sent: Saturday, December 22, 2018 6:39 PM > >To: Strut

RE: How to display both selected key and value of s:select

2018-12-24 Thread Yasser Zamani
t;From: albert kao >Sent: Saturday, December 22, 2018 6:39 PM >To: Struts Users Mailing List >Subject: How to display both selected key and value of s:select > >I want to display both selected key and value of s:select. >e.g. for the following codes, after I select key="2&qu

How to display both selected key and value of s:select

2018-12-22 Thread albert kao
I want to display both selected key and value of s:select. e.g. for the following codes, after I select key="2", value="Canada" and press the submit button. Only the key "Country: 2" is displayed in the registerResult.jsp as desired. How to make the value "Canada" to display also in the browser? p