Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

applets or client/server applications

Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 " 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.
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

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!
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic