Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applets & security 1

Status
Not open for further replies.

goaganesha

Programmer
Dec 4, 2001
178
BE
Hi there,

I'm making a jsp website (a kind of encyclopedia) which will also be distributed on a cd-rom for people who don't have an internetconnection. There has to be a search function to search for certain keywords.
I was thinking, is it possible to make it as a swingapplication that will load as an applet in the htmlpage?

I'm asking this because normally applets can't read from or write to the users harddrive for security reasons. Is this also the case for reading from a database which is on the users harddrive? If yes, is there a workaround like letting the applet pass it's searchdata to an underlying class which will make the databaseconnection and get the results for the search?

regards, goaganesha
 
Why not make the cd version a Swing application instead of an applet (the coding is very similar)? Then you wont have to worry about the sandbox. Also, if you find that you need to access the internet for something, you can just use java classes like URL and HttpURLConnection.
 
Hi,
thank you for your fast reply.
The problem is that the website and the cdrom version have to be exactly the same. I deliver 1 version and the distributor puts it on the net and makes the cd.
I have 2 options: using an htmlform or using an applet with swing.
Therefor I'm trying to find out if it is possible using swing.
regards, goaganesha
 
Look at information on applet-signing. I think this is addressed in a recent thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top