Create XML Based Web Applications
Using IBM VisualAge for Java
JDJ Issue 05-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>

}