Java Reference
In-Depth Information
Wireless Application Developing Using Servlets
This section will address the topic of dynamic wireless application development using Java
servlets. As mentioned earlier, not much separates WAP/servlet development from the standard
HTML/servlet development techniques presented throughout the rest of this topic. As you will
see in this section, it is as simple as setting a few new MIME types on your Web server and
you're off and running! Several more advanced techniques enable servlet applications to simul-
taneously support multiple client types, and these techniques will also be discussed.
For more information on wireless Java servlet development, visit the following URLs:
Go Wireless (XML Magazine):
Building Servlets To Output WML Content (
Configuring Server MIME Types
If you're going to serve up WML and WMLScript files from your Web server, you need to
notify your Web server of this by setting the appropriate MIME types. The file and MIME
types you should be aware of when supporting WAP are
.wml text/vnd.wap.xml
.wbmp image/vnd.wap.wbmp
.wmls text/vnd.wap.wmlscript
.wmlc application/vnd.wap.wmlscriptc
.wmlsc application/vnd.wap.wmlc
If you are using the popular Apache Web server ( ), these MIME types
can be added by editing the server's .htaccess file. For example, to add support for the .wml
file type, add the following line to .htaccess :
AddType text/vnd.wap.wml .wml
If you are using the popular Microsoft Internet Information Server
( ), modifying the server is done through a graphical user
interface. Within the Internet Service Manager application, select the Web server you would
like to modify, and then select the Properties menu option. From the Properties dialog box,
Search WWH ::

Custom Search