🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #739

Re: FTP integrated updating script

#739
From: Alan Boldock
Date: Tue, 06 Jun 2000 00:00
65 lines
3271 bytes
Perhaps you shouldn't be looking at JavaScript as that runs in the
browser on the client side of the process, rather you need to look at
some way of getting the file up to the site, this really needs to
be done using Server side processing. There are many ways of
doing this. You would use some kind of  processing of
the form this could be using a CGI scripting language
 (e.g. Perl, PHP, Python etc) or you could go to the "Dark Side"
and use Active Server Pages (ASP). The preferred
solution for this Newsgroup would be some serverside Java
i.e. a Java Servlet or Java Server Pages (JSP) (which becomes a Servlet) you
could get the form to submit to the Servile that knows the HTML
file that the field is to be merged into and the code could do that. The
code wouldn't be too hard write.

The biggest problem you have is that you probably don't have
an application server (that the servlets run it) so you may need to look
at some other CGI approach.

 If your deploying onto an Hosting Service you need to check with them as to
what they provide. In my Experience most provide some kind of Perl CGI's
but many won't allow you to write your own

Perhaps another approach is getting the users to edit a file on their
machine
that is then uploaded (FTP) to the server. That way getting around the form
submission/processing problem.

Another alternative is use Lotus/Domino its made for that sort of thing :-)

Alan Boldock
alan@boldenterprise.com.au


"sydneyshan" <sydneyshan@hotmail.com> wrote in message
news:393CE68B.696168B1@hotmail.com...
>
> Hi all,
>
> I'm designing a web site for a client and have run in
> to the need to integrate some java into it for easy
> maintainance.
>
> Basically, on the website (as usual, source files will be accessable
> through
> passworded FTP), there will be a standard HTML page with
> images, tables, links AND "Hot News" on it.
>
> The Hot News table is the trouble area, as I don't want the
> client to have to get in to updating it via an HTML editor and
> FTP client, but using an on-site Javascript to do so.
>
> This means the client will type (or paste) the latest news in
> to a field (or java-generated text dialog) and click "Update".
> From here, the javascript will upload a rendition of the
> existing HTML document with the new Hot News, replacing
> the previous document on the FTP site.
>
> Is this possible using Java/Javascript?
>
> If so, how would you go about it?
>
> Thanks in advance!
> -Shannon Murdoch
>
Technical Details
Message-ID: <s56%4.10173$N4.365860@ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <393CE68B.696168B1@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,2d025cff1d6bbb4
X-Google-Attributes: gid10d6db,public
From: "Alan Boldock" <aboldock@camtech.net.au>
Subject: Re: FTP integrated updating script
Date: 2000/06/06
Message-ID: <s56%4.10173$N4.365860@ozemail.com.au>
X-Deja-AN: 631693718
Distribution: world
References: <393CE68B.696168B1@hotmail.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Trace: ozemail.com.au 960294360 203.38.173.239 (Tue, 06 Jun 2000 22:26:00 EST)
Organization: www.boldenterprise.com.au
X-MSMail-Priority: Normal
Reply-To: "Alan Boldock" <aboldock@camtech.net.au>
NNTP-Posting-Date: Tue, 06 Jun 2000 22:26:00 EST
Newsgroups: aus.computers.java