Content-Type: |
text/plain; charset="iso-8859-1" |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Wed, 6 Dec 2000 11:12:56 -0700 |
MIME-Version: |
1.0 |
X-To: |
|
Reply-To: |
|
Parts/Attachments: |
|
|
2 only) The reason this is in the examples directory (to the best of my
understanding) is that they expect everyone to want to have those specs, and
it demonstrates the use of jvm2ada. I just keep one copy there in examples,
and then always use -I just as you indicated below.
--Martin
-----Original Message-----
From: Terry Westley [mailto:[log in to unmask]]
Sent: Wednesday, December 06, 2000 7:59 AM
To: [log in to unmask]
Subject: Ada and JSP (JavaServer Pages)
I haven't gotten any response on some Ada/JSP questions on comp.lang.ada
so I hope you all don't mind a couple technical questions here...
(1) Has anyone implemented a JSP (JavaServer Page) page compiler which
uses Ada as the scripting language and generates a servlet coded in
Ada, then compiles it with JGNAT or Object Ada?
It appears to be fairly easy to create and call an Ada Bean from a
JSP, but I was just wondering if I could go the next step and actually
code JSP declarations, scriptlets and expressions in Ada. This would
require an Ada JSP page compiler.
(2) JGNAT specific: In jgnat-1.1p, there is an examples directory which
contains the Java API in jar form. Using jvm2ada, one can create the
Ada specs for the packages and classes in the jar file.
I'm just wondering why the Java API is in the examples directory.
When I built my own program (an Ada Bean) using the Java API, I
referenced this directory (as in -I/jgnat-1.1p/examples/Java-API),
but am wondering if the intent is that I copy the jar file and Ada
package specs into each application build directory.
(3) JGNAT specific: In Java, you use the package statement to specify
that a certain class is in a particular package. Then, you put
your class file in the corresponding directory. I've successfully
created an Ada Bean, but can't figure out how to create and deploy
them in multiple directories so that the Web server can find them.
--
Terry J. Westley, Software Development Manager
Veridian Engineering, Information Warfare
[log in to unmask] http://www.veridian.com/
-------------------------------------------------------
Author of TASH, an Ada binding to Tcl/Tk.
Visit the TASH web site at http://www.adatcl.com.
-------------------------------------------------------
|
|
|