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 duane@deepmagic.com.

Featured

Most   Popular
Upcoming Events

AppTrends

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.