struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Geppert <jo...@apache.org>
Subject Re: problem with <s:select>
Date Sun, 21 Dec 2014 14:06:02 GMT
Please take a look at the documentation for the select tag. [1]
There are some examples how to use it.

<s:select
        name="employee"
        list="employeeList"
        listKey="empId"
        listValue="empName"/>



[1] https://cwiki.apache.org/confluence/display/WW/select

Best Regards

Johannes

#################################################
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2014-12-21 14:16 GMT+01:00 Yaragalla Muralidhar <yaragallamurali@gmail.com>:
>
> hi i have a employee dto with 10 fields. In <s:Select > how can i map empid
> as value and emp name as display string?
>
> I know how to do it with hashmap but without creating that additional
> hashmaps and lists can we directly map the List of employee dto's to
> <s:select> tag?
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
>
> *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message