J2ME中文教程 7 开发无线网络应用程序[22]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

    public void init(ServletConfig config) throws ServletException

    {

        super.init(config);

        host = config.getInitParameter("host");

        from = config.getInitParameter("from");

        System.out.println(host + from);

    }

    protected void doGet(HttpServletRequest request,

            HttpServletResponse response) throws ServletException, IOException

    {

        doPost(request, response);

    }

    protected void doPost(HttpServletRequest request,

            HttpServletResponse response) throws ServletException, IOException

    {

      

        DataInputStream dis = new DataInputStream(request.getInputStream());

        String send = dis.readUTF();

        String subject = dis.readUTF();

        String content = dis.readUTF();

        try

        {

            Properties props = System.getProperties();

            // Setup mail server

            props.put("mail.smtp.host", host);

本文关键:J2ME中文教程 7 开发无线网络应用程序
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top