我怎么能在webstart应用程序中嵌入html / css / js视图 [英] How could I embed a html/css/js view in a webstart application

查看:185
本文介绍了我怎么能在webstart应用程序中嵌入html / css / js视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的webstart项目中使用html / css / js视图而不请求所有权限

I would like to use a html/css/js view in my webstart project without requesting all permissions.

我想出来了我可以使用java HTTPServer来处理请求,但我需要一种方法来避免使用真正的套接字,这样HTTPServer实例化就不会要求一些权限。

I figured out that I could use the java HTTPServer to process the requests but I need a way to avoid using real sockets, so that the HTTPServer instantiation doesn't ask for some permission.

你知道任何实现这个目标的项目吗?如果没有,我该怎么做才能使HTTPServer完全在本地工作(没有达到边界......)?

Do you know any projects that achieve that ? and if not, what should I do to get an HTTPServer completely working locally (without hitting boundaries...) ?

编辑:也许HTTPServer太多了,我也许只需要一个HttpHandler ..

edit: maybe an HTTPServer is too much, I maybe only need a HttpHandler..

推荐答案

如果你能使用HTML 3.2, JEditorPane 可以呈现它,如显示此处

If you can live with HTML 3.2, JEditorPane can render it, as shown here.

这篇关于我怎么能在webstart应用程序中嵌入html / css / js视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆