Results 1 to 1 of 1
- 11-30-2008, 04:09 AM #1
Problem with applet, between appletviewer and browser
Well I made an applet which lets a user log in and do some stuff, it simulates a bank, they can transfer money if they are clients, withdraw or deposit if they are cashiers, watch info if they are the guys who call to make you pay debts, and an administrator.
It works with files.
I have tried it with AppletViewer, and it works perfectly, but... when I try it in a browser it has troubles.
My guess is that I need to do something different to read files, like getting the URL of the file instead of putting "users.dat" as path to the constructor of FileInputStream
So, is my guess right? or you think there may be another possibility?
If so, I remembered there was a way to get the URL of the running applet, but i don't remember where i read it and i can't find it :s
supposing its something like "getURL()"
would I have to put FileInputStream(getURL().toString()+"users.dat") ??
or how should I use it?Si vis pasem para bellum
- By shwein in forum Java AppletsReplies: 6Last Post: 10-17-2008, 07:24 PM
- By jklsemicolon in forum Java AppletsReplies: 5Last Post: 08-09-2008, 06:23 AM
- By freddieMaize in forum JavaServer Pages (JSP) and JSTLReplies: 6Last Post: 07-15-2008, 04:04 PM
- By freddieMaize in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 05-26-2008, 03:49 PM
- By shibajisanyal in forum Java AppletsReplies: 1Last Post: 01-09-2008, 02:47 AM