ITeye博客

must end with the ';' delimiter.错误的解决

minfirefox · 2008-11-19 15:24 · 错误记录 · Markdown

在配置文件中直接用&的话,会产生must end with the ';' delimiter.错误。


<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>

正确的做法是:把**&换成&**


<action name="add" method="add" class="com.entity.NodeAction">
	<result type="redirect">edit.action?id=${id}&amp;next=${next}</result>
</action>


<property name="connection.url">
	jdbc:mysql://localhost:3306/my?useUnicode=true&amp;characterEncoding=utf-8
</property>

XML其他字符的转换: < 换成 < > 换成 > ' 换成 ' " 换成 "

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。