Home
TOC Index |
Creating Static Content
You create static content in a JSP page by simply writing it as if you were creating a page that consisted only of that content. Static content can be expressed in any text-based format, such as HTML, WML, and XML. The default format is HTML. If you want to use a format other than HTML, you include a
page
directive with thecontentType
attribute set to the format type at the beginning of your JSP page. For example, if you want a page to contain data expressed in the wireless markup language (WML), you need to include the following directive:<%@ page contentType="text/vnd.wap.wml"%>A registry of content type names is kept by the IANA at:
ftp://ftp.isi.edu/in-notes/iana/assignments/media-types
Home
TOC Index |
This tutorial contains information on the 1.0 version of the Java Web Services Developer Pack.
All of the material in The Java Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.