在配置文件中直接用&的话,会产生must end with the ';' delimiter.错误。
正确的做法是:[size=large][color=red]把[b]&[/b]换成[b]&[/b][/color][/size]
XML其他字符的转换:
[color=red]
[b]<[/b] 换成 [b]<[/b]
[b]>[/b] 换成 [b]>[/b]
[b]'[/b] 换成 [b]'[/b]
[b]"[/b] 换成 [b]"[/b]
[/color]
<action name="add" method="add" class="com.entity.NodeAction">
<result type="redirect">edit.action?id=${id}&next=${next}</result>
</action>
<property name="connection.url">
jdbc:mysql://localhost:3306/my?useUnicode=true&characterEncoding=utf-8
</property>
正确的做法是:[size=large][color=red]把[b]&[/b]换成[b]&[/b][/color][/size]
<action name="add" method="add" class="com.entity.NodeAction">
<result type="redirect">edit.action?id=${id}&next=${next}</result>
</action>
<property name="connection.url">
jdbc:mysql://localhost:3306/my?useUnicode=true&characterEncoding=utf-8
</property>
XML其他字符的转换:
[color=red]
[b]<[/b] 换成 [b]<[/b]
[b]>[/b] 换成 [b]>[/b]
[b]'[/b] 换成 [b]'[/b]
[b]"[/b] 换成 [b]"[/b]
[/color]