java - Forward slashed removed in form id -


i using struts2(2.3.14) , forward slash character included in variable created in java server-side code being escaped _ after using inside struts form tag.

the code (jsp):

<div class="activetab" id="sub_${mytable}">     <s:form id="%{mytable}" onsubmit="return go('%{mytable}');"> 

transforms html:

<div class="activetab" id="sub_changepassword/execute">     <s:form id="changepassword_execute" onsubmit="return go('changepassword/execute');"> 

don't understand why "changepassword_execute" in id attribute instead of "changepassword/execute" ... (other attributes seem fine).

id="${mytable}" not possible $ not valid wildcard within form id attribute.

it's strange, thoughts?

a slash not valid dom id character:

i'd have double-check, it's form tag converts illegal id characters underscores.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -