gpt4 book ai didi

java - 添加了对调用 Javascript 函数到小程序的支持,现在从 Tomcat 获取 404 No Context

转载 作者:行者123 更新时间:2023-11-28 23:46:47 24 4
gpt4 key购买 nike

我已经将 Tomcat 6 Web 应用程序中嵌入网页的小程序更改为能够调用 Javascript 函数(导入 netscape.javascript.*;),现在访问网页时突然出现 404 错误使用 IE9 文本:

错误 404 - 未找到。此服务器上没有匹配或处理此请求的上下文。此服务器已知的上下文是:html_javascript(/html_javascript)

Chrome 也是如此。

我需要做一些额外的事情来完成这项工作吗?为什么会出现这个错误?

最佳答案

通过在html中的applet标签中添加MAYSCRIPT解决了问题。

像这样:

<applet code="com.example.MyApplet.class" name="myapplet"  codebase="http://localhost:8080/example/classes" align="baseline"
width="200" height="200" MAYSCRIPT>
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
Your browser is completely ignoring the &lt;APPLET&gt; tag!
</applet>

关于java - 添加了对调用 Javascript 函数到小程序的支持,现在从 Tomcat 获取 404 No Context,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13335958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com