customOnSubmit_parameters.id() function name cause problem when parameters.id
contains forbidden characters (webwork issue ww-1453)
-----------------------------------------------------------------------------------------------------------------------------------
Key: WW-2351
URL: https://issues.apache.org/struts/browse/WW-2351
Project: Struts 2
Issue Type: Bug
Components: Plugin - Tags
Affects Versions: 2.1.x
Reporter: Wes Wannemacher
Priority: Minor
copied from - http://jira.opensymphony.com/browse/WW-1453
When form "id" attribute contains forbidden characters, generated JS function
name is invalid. The JS specification allows only a-zA-Z0-9_ characters
(verified with Rhino JS engine)
In template files "form.ftl" and "form-close.flt" all non-word characters must
be replaced/removed e.g:
${parameters.id?replace('\\W', '_', 'r')}
This issue is related to http://jira.opensymphony.com/browse/WW-1440.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.