Subject: | |
From: | |
Reply To: | |
Date: | Mon, 26 Nov 2001 12:16:51 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> Enhydra seems to put the least
> demand on page designers to learn something new
That is correct, there is very little for the HTML/web page designers to
learn. Here is an example of Enhydra's XMLC in use.
The XMLC compiler takes the a plain HTML file that includes this line
<INPUT TYPE='TEXT' SIZE='50' NAME='COMPANY' ID="Company">
and creates a Java class that contains a representation of the web page.
The ID= part is a legal, but little used, clause in HTML. (Techie note: the
representation in the Java class is based on the industry standard DOM
model.)
The lines of Java code that shows the web page with a value in the "Company"
text box is:
// define the 'page' variable and
// generate the HTML out of the ConsultMHTML.class generated by
// Endyra's XMLC compiler.
private ConsultMHTML page = null;
page = (ConsultMHTML)myComms.xmlcFactory.create(ConsultMHTML.class);
// Put the value of the company variable into the HTML element
page.getElementCompany().setValue(company);
// send the HTML to the user. Enhydra infrastructure does the rest.
return page;
Cortlandt Wilson
Cortlandt Software
HP e3000, Java, Web, MANMAN, ODBC & 4GLs
Mountain View, CA
http://www.cortsoft.com
(650) 966-8555
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|