Terry Westley writes:
> But, the JVM is important to the Ada community, not just for Java.
> Specifically, If you wish to build an industrial-strength dynamic,
> data-rich web site with Ada, your only choice today is the technology
> of JavaServer Pages (JSP) which is based on Java servlet technology
> and the JVM. You can write Java Beans and Java servlets with Ada
> using JGNAT (which I've done) and also, I assume, with Object Ada.
> Yes, I know you can write CGI programs in Ada (plug here for David
> Wheeler's excellent AdaCGI, <http://www.dwheeler.com/>), but the CGI
Sure, but you should use this to ONLY get the CGI parameters. Never ever put
your HTML page (Put_Line ("<HTML>"); ...) into the CGI... This mistake is
made often. The code and the design must be separated. This is why I have
build the Template_Parser package (simple but it has proved to be useful to
me).
> technique is terribly slow and very little used any more in large,
> modern web sites. This is primarily due to the fact that CGI creates
> a new process on every request.
What about AWS ? There is no program spawned, it is fast and very safe since
there is no spawned programs (the spawning mechanism is one common attack to
the Web servers).
>
> As far as I know, template server systems (e.g., ColdFusion, PHP, ASP,
> JSP) other than JSP have no method for using Ada as the programming
> language.
Well AWS is all Ada :) and provides an Ada framework to build Web site.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"
|