Java Eclipse显示无效字符或无效文本字符串或标记未正确关闭
Eclipse Neon.3发行版4.6.3在以下代码行报告错误:Java Eclipse显示无效字符或无效文本字符串或标记未正确关闭,java,html,eclipse,jsp,jsp-tags,Java,Html,Eclipse,Jsp,Jsp Tags,Eclipse Neon.3发行版4.6.3在以下代码行报告错误: <select id="<%=province.id%>" data-placeholder=" " <%=province.multiple%> class="chzn-select" style="margin: 1px auto;width:260px;"> </select> 报告的错误包括: Multiple annotations found at this line
<select id="<%=province.id%>" data-placeholder=" " <%=province.multiple%> class="chzn-select" style="margin: 1px auto;width:260px;">
</select>
报告的错误包括:
Multiple annotations found at this line:
- Start tag (<select>) not closed properly, expected '>'.
- Invalid character used in text string (<%=province.multiple%> class="chzn-select" style="margin: 1px auto;width:260px;">).
- Invalid text string (<%=province.multiple%> class="chzn-select" style="margin: 1px auto;width:260px;">).
当我从行中删除时,Eclipse停止报告这些错误,但据我所知,这是有效的代码。有什么问题吗?应该这样吗
更新
在本案例中不必相关,但发现此问题也请参见详细信息:
在XHTML中,禁止属性最小化,并且
属性必须定义为输入多个=多个
那么文件后缀也可能使Eclipse变得更重要:如果是.xhtml
内容可能必须是.xhtml
一个好的问题(可能没有直接关系):问题:No,回显多个属性名称或空字符串以启用或禁用选择多个值:Ok,但我猜eclipse会抱怨,因为它遇到了启动问题