Re: [ask] How to pass multiple radio button in struts2

2018-12-24 Thread M Huzaifah
Hi Yasser, i tried, it will exception. i use this code bellow to get that value, instead for loop: request.getParameterValues("viewAccess["+i+"]")[0] this work for me. i’ll update if i got the proper way about this Thank you > On 22 Dec 2018, at 15.31, Yasser Zamani wrote: > > Hi, > > As d

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

2018-12-24 Thread Yasser Zamani
Hi Albert, The simplest method can be something like this: public class RegisterAction { ... public Country getSelectedCountryObject() { foreach (c in countryList) if(c.countryId==selectedCountry) return c; } ... } Thanks for using Struts. Kind Regards. >-Original Message- >From: alb