EmployeeXML.jsp.

JAVA PRIMER
JSP: Beyond Dynamic HTML
Duane K. Fields
Listing 1. EmployeeXML.jsp.


<%@ page contentType=”text/xml” %><?xml
                           version=”1.0”>
<jsp:useBean id=”employee” class=”Employee”
                         scope=”request”/>
<employee>
  <name>
    <jsp:getProperty name=”employee” property=”name”/>
  </name>
  <salary>
    <jsp:getProperty name=”employee” property=”salary”/>
  </salary>
</employee>

About the Author

Duane Fields is co-author of the best-selling book Web Development with JavaServer Pages. He can be contacted at [email protected].