Anders J�felt wrote:

> Hi everybody!!
>
> We are trying our best to build a WAP-application. The problem that we've
> encountered is that the "server" provided with JSWDK-1.0 always returns
> "content-type:text/html". We want the server to return: "content-type:
> text/wap.wml.wmlc".
>
> As far as we're conserned there's two possible work-arounds:
> 1. To somehow make a change in the JSWDK-server configuration. This should
> be the easiest and best solution, unfortunaltey we just don't have a clue of
> how this should be done.

You can configure the server to do this for the static files it serves, based on
the filename extension.  See the file "mime.properties" in the WEB-INF directory
for your web application.  For dynamically generated pages, see the next answer.

>
> 2. To insall another "ordinary" webserver. The problem in this case would be
> that we don't know how to make the jsp-engine (or Java Servlet) run on it.
>

If you are generating output in a servlet, you should call this before getting the
output stream or writer:

    response.setContentType("text/wap.wml.wmlc");

In a JSP page, you should be able to set the content type in the <%@ page %>
directive:

    <%@ page language="java" buffer="8kb" contentType="text/wap.wml.wmlc" %>

I haven't actually tried this one, but it's supposed to work.


>
> Another issue: Is there anyone else who have done any similair kind of
> projects??(Running a JSP engine for serving a WAP/WML-application). We would
> appreciate all the help we can get!!!
>
> Our development-platform is WinNT.
>

I haven't done this, but I've seen some messages on the list from others who have.

>
> Thanks alot in advance,
> //Anders J�felt and Gustav Engdahl.
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to