You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2007/09/27 02:56:37 UTC

[jira] Commented: (WW-2213) s:select tag doesn't work under resin 3.1.x

    [ https://issues.apache.org/struts/browse/WW-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42286 ] 

Wes Wannemacher commented on WW-2213:
-------------------------------------

I just tested this and it appears to be repeatable, although I would add a few comments. First off, for the value attribute, you should be presetting one of the elements in your list... ie. '01' ? Second, I was able to get this to work by specifying a type of Map to OGNL for the construction - 

list="{#@java.util.HashMap@{'Jan':'01', 'Feb':'02', 'Mar':'03'}"

This tells OGNL to construct the list as a HashMap

> s:select tag doesn't work under resin 3.1.x
> -------------------------------------------
>
>                 Key: WW-2213
>                 URL: https://issues.apache.org/struts/browse/WW-2213
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>         Environment: WindowsXP,Window 2000 Server,JDK 1.6.0 update2,resin 3.1.x
>            Reporter: Kun,Zheng
>
> I use <s:select /> tag and find it doen't work under resin 3.1.x;but it works well under tomcat 5.5.x and tomcat 6.0.x.
> The sample from struts-2.0.9\docs\docs\select.html, please try the code below under resin 3.1.x:
> <s:select label="Months"
>        name="months"
>        headerKey="-1" headerValue="Select Month"
>        list="#{'01':'Jan', '02':'Feb'}"
>        value="selectedMonth"
>        required="true"
> />
> it fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.