Posted by "Maurizio Cucchiara (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993454#comment-12993454 ]
Maurizio Cucchiara commented on WW-3573:
----------------------------------------
The Struts2 tag library supports dynamic attributes, so even if the tag library doesn't provide a specific tag you could use it.
In this specific case, if you write:
<s:a target="_blank">....</s:a>
It works exactly as it should (this implies that you write <s:a foo="bar">, it write for the same reason the attribute foo) .
Furthermore I never seen before targets attribute inside the struts tag library [1].
[1] http://struts.apache.org/2.2.1/docs/a.html
> <s:a ... tag has attribute targets instead of target
> ----------------------------------------------------
>
> Key: WW-3573
> URL: https://issues.apache.org/jira/browse/WW-3573
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.2.1
> Environment: Win 2003
> Reporter: Bartłomiej Mocior
> Labels: bug, taglib
>
> The struts2 tld has defined target attribute for anchor tag instead of target :
> <s:a targets="_blank"></s:a>
> what is more, the simple template (others as well) renders this as "targets" and this is wrong according to the html spec.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (WW-3573)
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Newton closed WW-3573.
---------------------------
Resolution: Not A Problem
> <s:a ... tag has attribute targets instead of target
> ----------------------------------------------------
>
> Key: WW-3573
> URL: https://issues.apache.org/jira/browse/WW-3573
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.2.1
> Environment: Win 2003
> Reporter: Bartłomiej Mocior
> Labels: bug, taglib
>
> The struts2 tld has defined target attribute for anchor tag instead of target :
> <s:a targets="_blank"></s:a>
> what is more, the simple template (others as well) renders this as "targets" and this is wrong according to the html spec.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (WW-3573)
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993471#comment-12993471 ]
Dave Newton commented on WW-3573:
---------------------------------
It's not in any TLD I'm aware of; the S2.2.1 TLD only has "target". I'll close this; it can be re-opened if I'm reading something totally incorrectly (always possible :)
> <s:a ... tag has attribute targets instead of target
> ----------------------------------------------------
>
> Key: WW-3573
> URL: https://issues.apache.org/jira/browse/WW-3573
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.2.1
> Environment: Win 2003
> Reporter: Bartłomiej Mocior
> Labels: bug, taglib
>
> The struts2 tld has defined target attribute for anchor tag instead of target :
> <s:a targets="_blank"></s:a>
> what is more, the simple template (others as well) renders this as "targets" and this is wrong according to the html spec.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira