本文介绍了关于Applet ....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以无条件地从我的applet传递在线数据库?或限制?


条件 - 一个受限制的字符组合,可能被怀疑是一种应该被阻止的病毒模式......安全问题


限制 - 并非所有ascii中的字符都可以在在线数据库中使用...


这只是一个奇怪的想法...


我目前在小程序中试验一个简单的哈希码生成器......(独特的模式)

然后我想将它保存在数据库中,


是否有任何可能改变真实代码(生成代码)的可能性,因为我将哈希码的副本传输到在线数据库?


任何回复都是非常感谢...


sukatoa。

Is it possible to communicate the online database from my applet without any conditions? or limitations?

Conditions - a restricted combination of characters that might be suspected as a
pattern of a virus that should be blocked...Security concerns

Limitations- Not all characters in ascii are welcome in an online database...

It''s just a weird idea...

Im currently experimenting a simple hashcode generator in an applet...(unique patterns)
Then i would like to save it in the database,

Is there any possibilities that might change the real code(generated code) as im transfering a copy of a hashcode to an online database?

Any reply would be greatly appreciated...

sukatoa.

推荐答案



我不是applet的忠实粉丝,但最好的做法是将你的应用程序分为三层:


1.小程序

2.服务器上的中间层

3.数据库


您的小程序无法直接通信与数据库。有证据表明,applet类中没有java.sql类,也没有使用applet类下载的任何代码。

您的applet与服务器组件通信,该组件与之通信数据库。


您可能想重新考虑使用applet并将其写为Web应用程序。

I''m not a big fan of applets, but the best practice is to write your application in three layers:

1. applet
2. Middle layer on server
3. Database

Your applet doesn''t communicate directly with the database. Evidence is that no java.sql classes appear in the applet class, nor in any code that gets downloaded with the applet class.

Your applet communicates with a server component and that component communicates with the database.

You may want to reconsider using an applet and write this as a web application.




是的,我忘了关于服务器的问题...


所以,我可以保证文本的任何组合我将被发送到服务器,它不会更改模式,直到它保存在数据库上?


Sukatoa ...

Yah, i forgot to mension about the server...

so, can i assure that whatever combination of text i will be send to the server, it does not change the pattern until it saves on the database?

Sukatoa...




你有吗?当你问这个时,有什么特别的想法吗?我不确定你想说什么。

Do you have something specific in mind when you ask this? I''m not sure what you are trying to say.


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

10-27 02:38