|
| |
"Create XML Based Web Applications
Using IBM VisualAGE for Java"
Vol. 5, Issue 11, p. 98
Listing 1: Sample XML response document
<?xml version='1.0' ?>
<SurveyResponse>
<ID>2</ID>
<Timestamp>Monday, August 21, 2000 5:07:32 PM EDT</Timestamp>
<ItemRatings>
<ItemRating>1</ItemRating>
<ItemRating>2</ItemRating>
<ItemRating>1</ItemRating>
<ItemRating>1</ItemRating>
<ItemRating>3</ItemRating>
<ItemRating>2</ItemRating>
<ItemRating>2</ItemRating>
</ItemRatings>
<Comments>Great session on Java/XML. This is the way of the future.</Comments>
<Suggestions>more on Linux and Open Source stuff</Suggestions>
</SurveyResponse>
Listing 2: WebSphere Test Environment start-up configuration file for servlets
<?xml version="1.0"?>
<webapp>
<name>default</name>
<description>default application</description>
<error-page>/ErrorReporter</error-page>
...
<servlet>
<name>SurveyServlet</name>
<description>Conference Survey servlet</description>
<code>ryman.survey.SurveyServlet</code>
<init-parameter>
<name>servletDirectory</name>
<value>$server_root$/hosts/default_host/default_app/web/survey/data</value>
</init-parameter>
<servlet-path>/survey/ConfSurvey</servlet-path>
<autostart>true</autostart>
</servlet>
...
</webapp>
}
|
|
All Rights Reserved
Copyright © 2004 SYS-CON Media, Inc.
E-mail: info@sys-con.com
Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. SYS-CON Publications, Inc. is independent of Sun Microsystems, Inc.
|