wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes applets or client/server applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "applets or client/server applications" Watch "applets or client/server applications" New topic
Author

applets or client/server applications

Joe Meany
Greenhorn

Joined: Jun 14, 2011
Posts: 25
hey there,

I am working on a project right now and its almost finished. The application i made accesses a database, inserts, deletes and queries...

The application at first was a stand-alone application, but now there seems to be a need for an applet(ish). basically, i want to be able to let anyone who wants to use the application, do so from their computers. All of the computers are networked to the server where the applet would be stored, as well as the database.

I have turned this into a applet, and have digitally signed it...the certificate file shows up and everything... but i cannot get it to prompt for user permissions upon accessing the applet through the web page it is embedded in.

I have been having a lot of problems getting this to work, and it made me question how i was going about doing it. I could have easily signed the applet wrong, as i have never tried to put an applett online before.

I was led to believe that a applet does not need a users permission to run if it accesses a database stored on the same server that the applet itself is stored on. Is this true? if so, would there be any other reasons i would receive a "java.util.property permission file.encoding read" from the java console while trying to access the applet through the browser?

Also, if it makes more sense, as this application would only be accessed by the members of a local network, should i just turn it into a client/server application?

Thanks guys, I'm really hoping to finish this project soon, and everyone here has always been a great help.
Unnar Björnsson
Ranch Hand

Joined: Apr 30, 2005
Posts: 164
I haven't done any applets in a long time but applets were always restricting regarding outside resources.
Have you considered Web Start?
Joe Meany
Greenhorn

Joined: Jun 14, 2011
Posts: 25
No, i havnt really considered web start. I actually just looked up what it was. It sounds really good! i assume that would solve many of my security issues? Also, is it pretty simple to convert my applet to a web start application?

Thanks for your response!

<edit>
ok, so ive been giving java web start a shot and was wondering if you could give me some advice with that now?

Also, i dont want to continue this thread here, with java web start, if it isnt the appropriate place. Should i re-start this elsewhere?

So, i made my html file, and i made my .jnlp file. the html file holds a link to the .jnlp file, but when clicked, google chrome says taht it cannot find the web page... im sure that the file path is correct. I dont know what else to check.

Thanks greatly!
 
 
subject: applets or client/server applications
 
Similar Threads
Signed applet and printing
Is it a good practice to save files in local system via signed applet
Socket Permissions
get directory name from the local file system
Please help me in Applet RMI communication