You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Kun,Zheng (JIRA)" <ji...@apache.org> on 2007/09/26 18:08:36 UTC
[jira] Created: (WW-2213) s:select tag doesn't work under resin
3.1.x
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.
[jira] Commented: (WW-2213) s:select tag doesn't work under resin
3.1.x
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42295 ]
Musachy Barroso commented on WW-2213:
-------------------------------------
#{} won't be working in the future , see
http://java.sun.com/products/jsp/reference/techart/unifiedEL.html
use the alternative OGNL map syntax:
list="{#@java.util.HashMap@{'Jan':'01', 'Feb':'02', 'Mar':'03'}"
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction
> 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.
[jira] Resolved: (WW-2213) s:select tag doesn't work under resin
3.1.x
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2213.
---------------------------------
Resolution: Won't Fix
> 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.
[jira] Commented: (WW-2213) s:select tag doesn't work under resin
3.1.x
Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (WW-2213) s:select tag doesn't work under resin
3.1.x
Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42297 ]
Wes Wannemacher commented on WW-2213:
-------------------------------------
It appears that resin is using the UnifiedEL, thus it thinks that #{ should be treated as a UnifiedEL statement. http://java.sun.com/products/jsp/reference/techart/unifiedEL.html To skip UnifiedEL and allow OGNL to parse the statement, escape the pound character -
\#{'Jan':'01', 'Feb':'02', 'Mar':'03'}
Tested in resin 3.1.2 and works.
> 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.