Hi Prasad,

I'm using JSP to deliver both my HTML & WML.

First, I check the browser type:

if (request.getHeader("Accept").indexOf("wml")!= -1)
        browserType = 1;//wap browser
else
        browserType = 0;//standard browser


//then I process some JSP + deliver the html stuff

//then I show the WML

response.setContentType("text/vnd.wap.wml");
%>
<?XML version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" 
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<card id="main" title="Welcome">
<p align="center">
      Welcome!
      <br />
    <do type="accept">

   <go href="#login"/>

   <img src="img" localsrc="OK" alt="OK"/>

</do>


Hope this helps...

Cheers

Kate McNamara
[EMAIL PROTECTED]


>Resending the same message as the server sent me rejection notice. If you
>got the same message earlier please ignore this one.
>
>Thanks
>
>Prasad
>
>Guys,
>
>I have a problem with how to use Bean tages in JSP to generate WML page.
>
>i have a JSP which works fine when I generate HTML pages. Now I want to do

>the same for the WML. I am confused about this. Can sombody help me?
>
>Detailed problem is: I got a html fiel which looks like this,
>
><html>
>
>......
>....
>
>Social security number retrieved:
><jsp:getProperty name="jbonus" property="socsec"/>
>
></body>
></html>
>
>how do I write the same for WML? what I ahve done is below.
>
>response.setContentType("text/vnd.wap.wml");
>out.println("<wml>");
>out.println("<card id=\"Result\" title=\"Result\">");
>out.println("SocSec retr:");
>out.println(<jsp:getProperty name="jbonus" property="socsec"/>);
>....
>.......
>
>this does not seem to work!
>
>any ideas?
>
>This is quite urgent
>
>Prasad
>
>===========================================================================

>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

Reply via email to