0
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
form.parentProcessNumberPresentation.value= "<"+ "<bean:write name="associatedProcessField" property="fieldInstruction"/>" + ">";
當我打印與它帶有"\ n"
的"bean: write"
文本,然後打破了將在形式分配給組件串Java的「豆:寫」 +的JavaScript =「未終止的字符串字面
這怎麼可能過濾"\ n"
跳過它 我已經試過:
form.parentProcessNumberPresentation.value= "<"+ "<bean:write name="associatedProcessField" property="fieldInstruction" filter="false"/>" + ">";
對不起struts版本的困惑 – 2012-04-24 19:04:44