我创建了一个JNLP文件,我想启动一个带有两个参数(动态)的jar文件
我正在使用<%= request.getParameter("mac") %>
但我不知道为什么会出现此错误org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 20;
,错误发生在<%=
。
这是我的JNLP文件
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localmaite/jnlp/" href="Putty.jnlp">
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.7+"/>
<jar href="maite.jar"/>
</resources>
<application-desc main-class="main.Main">
<argument><%= request.getParameter("mac") %></argument>
<argument><%= request.getParameter("port") %></argument>
</application-desc>
</jnlp>
由于此错误,我无法执行我的jnlp文件。
有人已经出现过这种错误吗?有人知道我为什么会有这个错误吗?
完整邮件错误(法语):
org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 20; Le contenu des éléments doit inclure un balisage ou des caractères au format correct.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.startOfMarkup(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at com.sun.deploy.xml.XMLParser.parse(Unknown Source)
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
PS:对不起我的英语,但这不是我的主要语言。