[
https://issues.apache.org/jira/browse/WW-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852098#action_12852098
]
Brett Graves commented on WW-2069:
----------------------------------
>From WW-1888, several tags, including the form tag, generate invalid xhtml by
>including the name attribute. One of the comments on the issue says it would
>cause problems if it was removed outright, but can you provide an additional
>tag attribute or some way to configure the tag to not include the name
>attribute in the rendered html?
I'm basically hacking around it now, if I do something like:
<s:url action="myAction" var="formUrl"/>
<s:form id="form1" action="<s:property value='formUrl'/>" method="post">
it won't render the invalid name attribute on the form but I do end up with an
additional warning message in the log which is considerably less than desirable.
20003 [http-8080-1] WARN org.apache.struts2.components.ServletUrlRenderer -
No configuration found for the specified action: '<s:property
value='formUrl'/>' in namespace: '/myNamespace'. Form action defaulting to
'action' attribute's literal value.
> Drop "id" and "name" attributes" on the tags where they are deprecated.
> -----------------------------------------------------------------------
>
> Key: WW-2069
> URL: https://issues.apache.org/jira/browse/WW-2069
> Project: Struts 2
> Issue Type: Task
> Components: Plugin - Tags
> Reporter: musachy
> Fix For: 2.2.x
>
>
> This is a follow up of WW-2027
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.