Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2008, 04:09 AM
Goodwine's Avatar
Member
 
Join Date: Nov 2008
Location: Mexico
Posts: 14
Rep Power: 0
Goodwine is on a distinguished road
Default 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
-Vagecio
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
applet won't run in browser... shwein Java Applets 6 10-17-2008 07:24 PM
Difference between browswer and appletviewer? jklsemicolon Java Applets 5 08-09-2008 06:23 AM
Problem is getting the data to browser(JSTL) freddieMaize JavaServer Pages (JSP) and JSTL 6 07-15-2008 04:04 PM
Problem is getting the data to browser freddieMaize JavaServer Pages (JSP) and JSTL 0 05-26-2008 03:49 PM
applet problem plz HELP shibajisanyal Java Applets 1 01-09-2008 02:47 AM


All times are GMT +2. The time now is 03:33 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org