struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaragalla Muralidhar <yaragallamur...@gmail.com>
Subject Re: problem with <s:select>
Date Sun, 21 Dec 2014 16:13:53 GMT
Thank u so much. it worked.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Sun, Dec 21, 2014 at 7:36 PM, Johannes Geppert <jogep@apache.org> wrote:

> 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