上传的Java Applet到网页 [英] Uploading a Java Applet into a webpage

查看:169
本文介绍了上传的Java Applet到网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建使用NetBeans 6.0也有高分一个Microsoft Access数据库的Java游戏信小程序。
我想它上传到网页(比如如何做对Facebook的MINICLIP等),我想知道它如何做

I have created a java letter game applet using netbeans 6.0 which also has a Microsoft Access Database for the High Scores. I want to upload it into a webpage (like how its done on miniclip facebook etc) I'd like to know how it could be done

推荐答案

我不知道你的意思上传到网页是什么。小程序使用的是 &LT嵌入到网页;小程序> 标记 <对象> 标记。然而,Access数据库可能会成为一个问题,因为它与许多潜在的并发用户很差适合互联网应用程序。

I'm not sure what you mean with "upload it into a webpage". Applets are embedded into webpages using the <applet> tag or the <object> tag. However, the Access DB could become a problem, since it is poorly suited to an internet app with potentially many concurrent users.

此外,直接从applet访问DB是一个非常糟糕的主意,因为小程序code(这是在全球范围向所有人)将需要包含数据库用户名和密码,这意味着大家谁困扰到编译小程序可以为所欲为(以及用户被允许)做的DB。最起码,他们将能够进入童话榜(例如50万安时一场完美的比赛让你1000)。

Additionally, accessing a DB directly from an applet is a very bad idea, since the applet code (which is globally accessible to everyone) will need to contain the DB user and password, which means that everyone who bothers to decompile the applet can do whatever they want (and that user is allowed) to do with the DB. At the very least, they'll be able to enter fairy tale highscores (e.g. 50 million when a perfect game gets you 1000).

这篇关于上传的Java Applet到网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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