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



