I have a problem with some characters like & ...
I mean, in struts-config.xml, in tag <forward ... path="/form/test.jsp?type=1&index=1" -> if I let & here, struts-config.xml will not be parsed. I have to change from & to &
I have a from like that: (test.jsp)
<html:text name="text1" value="R&D departement">
<html:button name="btn" onclick="formSubmit()">
In TestAction, after do something, I will forward to test.jsp -> save text1 to session's variable
In test.jsp, I will comapre the value of text1 and session variable
but I got the result like that
alert(document.forms.text1.value) => "R&D department"
alert("<nested:write property="text1" name="text1"/>") => "R&D department"
so they are not equal
Please show me how to solve it?
Thank you very much
P/S: I think in some cases with the special letters, it will be the same case like &