Article View: borland.public.jbuilder.java.api
Article #2841Re: File Streams in Pre-1.2 Java
From: rwilkman
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
76 lines
3130 bytes
3130 bytes
Brian: Yep. Been that way forever and is usually stated in the first five or ten pages of any intro to Java or Applets. If you want to handle this in Java look at Servlets or even a Server-side Java App that runs on the Server and that brokers the communication with the Applet. If you have the physical access and rights to do CGI (something most ISP's won't allow), then you could do this. However there's good reason why the sites that "take data and persist them in a database on the server" don't use Java for this. You can use html widgets to build a much lighter form for collecting the data and never have to worry that your client has an old browser or that they have IE5 which doesn't install a VM by default. Tons faster, too. -Rich Brian Levine wrote: > > Let me get this straight. Applets cannot write data back to the server? > > What I've been trying to develop is an applet for a catalog web page that > will read from a database, so that it will only allow the user to select an > item if it is in stock. Thus it would need to update the inventory table > when a purchase was made. Is this not possible from an applet? Is it time > to crack open the CGI books? > > Brian Levine > > rwilkman wrote in message <38A2EDA3.832D3061@inprise.com>... > >Brian: > > > >InputStream and OutputStream. But you might want to read up on Applets > >first because it sounds like you are trying to write something that is > >simply not allowed. > > > >Applets can read only from the server they came from and they can write > >nowhere. You can't use File based objects for this reason. > > > >-Rich > > > >Brian Levine wrote: > >> > >> Does pre-1.2 Java have a mechanism for reading writing FileStreams. I'm > >> trying to write an applet that supports fairly early browsers. > >> > >> Thanks, > >> Brian Levine > > > >-- > >===== > >Rich Wilkman > >Senior Quality Assurance Engineer > >JBuilder Team > > > >If something in this post looks like an opinion, walks like an > >opinion and quacks like an opinion, it's mine and not that of > >my employer. > > > >If you are reading this from a newsgroup post, don't send mail. > >===== -- ===== Rich Wilkman Senior Quality Assurance Engineer JBuilder Team If something in this post looks like an opinion, walks like an opinion and quacks like an opinion, it's mine and not that of my employer. If you are reading this from a newsgroup post, don't send mail. =====
Technical Details
Message-ID:
<38A347CE.897DC77@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<87uhq4$cif4@bornews.borland.com> <38A2EDA3.832D3061@inprise.com> <87v1qu$cqu1@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,30f598abbbd3436d X-Google-Attributes: gid1089d0,public From: rwilkman <rwilkman@inprise.com> Subject: Re: File Streams in Pre-1.2 Java Date: 2000/02/10 Message-ID: <38A347CE.897DC77@inprise.com> X-Deja-AN: 584316206 Content-Transfer-Encoding: 7bit References: <87uhq4$cif4@bornews.borland.com> <38A2EDA3.832D3061@inprise.com> <87v1qu$cqu1@bornews.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api