servlet:
 public void doGet(HttpServletRequest request,HttpServletResponse response)
  throws ServletException,IOException
 {
 doPost(request,response);
 } public void doPost(HttpServletRequest request,HttpServletResponse response)
  throws ServletException,IOException
{
  DataOutputStream dot = new DataOutputStream(response.getOutputStream());
  try {
   //读数据
   //dot 实例 向applet 响应 写数据;
   System.out.println(" "+hello);
  } catch (Exception exp) {
   exp.printStackTrace();
  }
}
applet:public vector Read(){
   try{
   String link="http://127.0.0.1:8080/SiteName/servlet/YourServlet";
   url=new URL(link);
   DataInputStream dis=new DataInputStream(url.getInputStream());
   // 处理你获得的dis对象,并把数据格式化为特定格式的数据,如这里将返回的vector结构   }catch(ProtocolException pe){
pe.printStackTrace();
   }
   catch(Exception e){
   e.printStackTrace();
 }
}