Regarding the WAP issues:
* You can detect a WAP client by looking for the string "wml" in the accept
header, e.g. request.getHeader("Accept").indexOf("wml") != -1.
* You need to use this in any JSP pages that generate WML in order to set
the content-type correctly:
<%@ page contentType="text/vnd.wap.wml"%>
Chris
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kate McNamara
> Sent: Wednesday, September 20, 2000 7:05 PM
> To: [EMAIL PROTECTED]
> Subject: Some questions...(Vectors / WML / Browsers)
>
>
> > I'm posting this again because it appears to have been rejected
> the first time.
> Apologies to anyone who might receive it twice.
>
>
> Hi Folks,
>
> I was hoping someone might be able to help me with the two
> problems I'm having
>
> at the moment.
>
> 1/ I want to detect a WAP browser (as opposed to any standard PC
> browser) and
>
> redirect to a different welcome page accordingly. At the moment
> if I try to
>
> type in my WML address in IE, it tries to download the resulting
> file. Not
>
> a good idea. Also, I am trying to build the WAP using JSPs. Is
> there a content
>
> type command I can use to allow it to be delivered appropriate
> (ie as WML)?
>
>
>
> 2/ I'm limited to Java 1.1.*, and I'm using a lot of
> databases. I want
> to be
> able to move through one resultset several times, and I've been
> told that the
>
> best way to achieve this is through vectors (or vectors of
> vectors). I'm not
>
> sure of the syntax of this, so if anyone could assist I would
> greatly appreciate
>
> it.
>
> Thanks very much!
>
> Kate McNamara
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets