作为 JSP 脚本的 XML 文件
我想用 JSP 脚本生成 XML 文件。问题是我希望 JSP 脚本成为 Spring-MVC 视图,从而继承视图的对象。当我
<?xml version="1.0" encoding="utf-8"?>
在 Eclipse 中写入 JSP 文件时,出现错误“处理指令未关闭”。这是为什么呢?是否可以做我想做的事,这是实现它的方法吗?
I'd like to generate an XML file with a JSP script. The catch is that I want my JSP script to be a Spring-MVC view, and thereby inherit the view's objects. When I write
<?xml version="1.0" encoding="utf-8"?>
in a JSP file in Eclipse, I get an error saying "Processing instruction not closed". Why is this? Is it possible to do what I want to do, and is this the way to go about it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您还没有弄清楚这一点,这是我对这个问题的丑陋解决方案:
它避免了“处理指令未关闭”错误和覆盖整个文档的红色波浪线。据说还有一种方法可以在 Eclipse 中完全关闭对此的验证,但恕我直言,验证通常会派上用场。
In case you haven't already figured this one out, here's my ugly fix for this problem:
It avoids the "Processing instruction not closed" error and the red squigglies covering the entire document. There's also supposedly a way to turn off the validation for this in Eclipse entirely, but said validation comes in handy more often than not IMHO.