×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    7

    How to convert wml->jar file

    Hello...

    Anyone can tell me how to convert wml file into jar file...

    actually my doubt is to run wml file on pc browser we can easily run tht file

    using NMIT,but how to run that file in mobiles...i saw one example in some

    tutorial....

    ================================================================

    import java.io.*;

    import javax.servlet.*;
    import javax.servlet.http.*;

    /**
    * This is a simple servlet that will run on a cell-phone. It displays the
    * current date and time.
    *
    * @author <a href="mailto:qmahmoud@javacourses.com">Qusay H.
    Mahmoud</a>
    */

    public class MobileDate extends HttpServlet {

    public void service (HttpServletRequest request, HttpServletResponse
    response) throws ServletException, IOException {
    // set content type for wireless data
    response.setContentType("text/vnd.wap.wml");

    // get the communication channel with the requesting client
    PrintWriter out = response.getWriter();

    // write the data
    out.println("<?xml version=\"1.0\"?>");
    out.println("<!DOCTYPE wml PUBLIC\"-//WAPFORUM//DTD WML 1.1//EN\"");
    out.println("\"http://www.wapforum.org/DTD/wml_1.1.xml\">");
    out.println("<wml>");
    out.println("<card title=\"MobileDate\">");
    out.println(" <p align=\"center\">");
    out.println("Date and Time Service<br/>");
    out.println("Date is: "+ new java.util.Date());
    out.println("</p>");
    out.println("</card>");
    out.println("</wml>");
    }

    }


    using this example i thought we can convert wml into jar file....but i didn't get the output can anybody tell me how to do this....

    thanks & regards

    Kushal
    Last edited by kushal.mca; 2009-09-15 at 11:01. Reason: no one cant send reply

  2. #2
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    133

    Wink Re: How to convert wml->jar file

    WinWAP Smartphone Browser Emulator 1.2

    WinWAP Smartphone Browser Emulator let's you use WAP services on your Windows PC. The browser is a mobile Internet browser that emulates the way you would use the mobile Internet services on built-in browser of a smartphone.It looks like a smartphone on the desktop. Freeware download of WinWAP Smartphone Browser Emulator 1.2

    Download:

    WinWap SmartPhone Browser Emulator 1.2

Similar Threads

  1. how to convert .bmp files to .mbm file?
    By jignasha in forum Symbian Tools & SDKs
    Replies: 8
    Last Post: 2009-01-11, 10:45
  2. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  3. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •