如何制作带有图表的 JSR-168 portlet?

发布于 2024-08-03 01:42:45 字数 409 浏览 3 评论 0原文

我正在尝试制作一个带有图表的 JSR-168 portlet。 通过研究,我可以使用 portlet-container 在 NetBeans 中运行一些 portlet,但我也必须制作一些图表才能运行。 有人可以帮忙提供一个链接或一个示例吗? 我发现这对我有帮助:

-> dojocampus.org -> dojotoolkit.org -> extjs.com

我制作了一个图表,但是当我放入 portlet-container 时出现错误:“部署失败 Portlet war 文件。可能的原因可能是从 portlet war 文件读取 WEB-INF/portlet.xml 时出错”。只有 portlet 或图表可以工作,但它们一起会犯错误。 JSR 可以运行任何图表类型(flash、Java Script 等)吗?

阿特

I'm trying to make a JSR-168 portlet with a chart.
Studying about it i can run some portlets in NetBeans with portlet-container but i have to make some charts to run too.
Can some one help with a LINK or an Example?
I found that to help me:

-> dojocampus.org
-> dojotoolkit.org
-> extjs.com

I make a chart, but when i put on portlet-container have the error: "Deployment Failed Portlet war file. Possible reason can be error reading WEB-INF/portlet.xml from portlet war file". Only the portlet or the chart they work, but toghetter make the error.
JSR can run any chart type(flash, Java Script, etc)?

Att

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

当爱已成负担 2024-08-10 01:42:45

最简单(甚至不完美)的方法是创建一个普通的 servlet,它接收值作为输入参数,输出将是图片。

以下是如何在 servlet 中创建动态图像的一些基本信息: http://www .exampledepot.com/egs/javax.servlet/GetImage.html

要生成图形图像,您可以使用此库:http://www.jfree.org/jfreechart/index.html

The easiest(even not perfect) way is to create a ordinary servlet which receives the values as input parameters and output would be the picture.

Here is some basic info how to create dynamic image in servlet: http://www.exampledepot.com/egs/javax.servlet/GetImage.html

To generate image of graph you can use this library: http://www.jfree.org/jfreechart/index.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文