Path: news.cs.au.dk!not-for-mail From: Lars Balker Rasmussen Newsgroups: comp.lang.beta Subject: Re: I feel a bit discriminated Date: 19 Jun 2000 13:54:45 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 49 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <20000619135445.4207.qmail@noatun.mjolner.dk> Reply-To: Lars Balker Rasmussen NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 961422903 282863 255.255.255.255 (19 Jun 2000 13:55:03 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Jun 2000 13:55:03 GMT Xref: news.cs.au.dk comp.lang.beta:12424 Atle writes: > Of course, since I know so little of web-scripting, I may be confusing > the server side with the client side. You are confusing the two. Client side: * Applets are client-side (java-)applications delivered by the server. * Javascript is embedded scripting in HTML, handled by the web-browser. Server side: * Servlets are server-side (java-)applications executing on the server, presenting results to the client. * Serverside scripting such as PHP and ASP are embedded in HTML, but executed on the server, so all the client sees is HTML. * CGI (Common Gateway Interface) is a standard to execute programs on the server to present information to the user "independent" of HTML. It is independent of the programming language used! As for Sascha's comment: > The only possibility to use BETA for CGI programming is to use BETA as > a language for programming a server! This is not true. Several of the CGI-programs on Mjølners webserver are written in BETA. After all, CGI is all about reading some stuff from environment variables '$(QUERY_STRING)' -> ExpandEnvVar(# defaultValue:: (# do '' -> envvarvalue[]; #) #) -> params[]; and printing the results 'Content-type: text/html\n\n' -> s.puttext; '' -> s.putline; 'Result' -> s.putline; '

Result

Result!' -> s.putline; '' -> s.putline; Granted, it's not as suited for CGI-work as Perl with the CGI module, but that's not the same as saying it's not possible. Writing a similar module for BETA is left as an exercise to the interested reader. (I'm not involved in the development or support of BETA.) -- Lars Balker Rasmussen, Software Engineer, Mjolner Informatics ApS lbr@mjolner.dk