JSP java2d JSP 2d Taglib - Rhino 给我一个错误
我正在尝试在 JSP 应用程序中绘制简单的二维事物。我在 http://ditchnet.org/2d/ 上找到了这个标签库,但它没有按预期工作... 如果我启动我的网络应用程序,我会收到以下错误:
org.apache.jasper.JasperException:处理 JSP 页面 /index.jsp 时发生异常 第 20 行
17: 18:
你好世界!
19: 20: 21:
22: // 创建红色渐变涂料 23: var color1 = new java.awt.Color(0xC80021);堆栈跟踪: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
根本原因
javax.servlet.ServletException: javax.servlet.jsp.JspException: Rhino 遇到错误 在评估 id 'polygon' 标签中的 JavaScript 时:null
它表示我的多边形标签为 null。但并不是大家看到的那样... 有人有好主意吗? :) 或者也许是在 jsp 中绘制 2d 内容的另一种解决方案? 谢谢!
I'm trying to draw simple 2d things in my JSP application. I found this taglib on http://ditchnet.org/2d/ but it doesn't work as expected...
If I start my webapp I get the following error:
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at
line 2017:
18:Hello World!
19:
20:
21:
22: // create red gradient paint
23: var color1 = new java.awt.Color(0xC80021);Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Rhino encountered an error
while evaluating the JavaScript in the tag with id 'polygon': null
So it says my tag with polygon is null. But it's not as you all can see...
Anybody with a good idea? :)
Or maybe another solution for drawing 2d stuff in jsp?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有给我的根目录所需的权限,所以它无法正常工作......
现在可以写了,而且运行得非常好;)
顺便说一句,很棒的 Taglib。
问候,
马蒂亚斯
I didn't gave my root directory the needed rights so it couldn't work well...
Now it's allowed to write and it works like hell ;)
Great Taglib btw.
Greetings,
Matthias