JBoss proper plays little direct role in the rendering of WAP content.
This is really governed by your web-application configuration. The steps
are the same regardless of the servlet container although execution may
change slightly.

1. Add the mime-types for serving static content (if your web application
has static content)
2. For JSP/servlets, remember to set the content-type for WAP content
(usually WML)

In Jetty, to add the mime-types, you can modify the global definitions in
the server/instance/deploy/jbossweb-jetty.sar/webdefault.xml:

  <mime-mapping>
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>wmlc</extension>
    <mime-type>application/vnd.wap.wmlc</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>wbmp</extension>
    <mime-type>image/vnd.wap.wbmp</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>wmls</extension>
    <mime-type>text/vnd.wap.wmlscript</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>wmlsc</extension>
    <mime-type>application/vnd.wap.wmlscriptc</mime-type>
  </mime-mapping>

In order to make your dynamic WML generation easier, you might consider
using the OpenWave OUI (Open User Interface) taglibs and Java libraries.
It has some nice features like detecting the requesting browser and
rendering content appropriately - since some systems such as the older
Nokias don't have advanced display features (like hotkeys, menu displays
and so on).

We've done it both ways for commercial apps and the OUI coding produces
much better display results across a range of WAP browsers - IE and Opera
are also able to render output from OUI applications. It also makes
testing easier.

Regards,

JonB.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Rodrigo di
> Lorenzo Lopes
> Sent: Wednesday, 6 August 2003 8:14 AM
> To: JBoss-user
> Subject: [JBoss-user] running WAP on the JBoss
>
>
> Dears,
>
> How to configure JBoss/Jetty to run WAP applications?
>
> --
> Rodrigo di Lorenzo Lopes

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to