日期:2014-05-19 浏览次数:20775 次
手机客户端代码:
LoginForm:
package com;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.OutputStream;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
/**
* 用Http方式与服务器交互
*
* @author zdw
*
*/
public class LoginForm extends MIDlet implements CommandListener
{
????private Form form = null;
????private Display display = Display.getDisplay(this);;
????private Command login = null;
????private Command exit = null;
????private