当前位置:开发者网络 >> 技术教程 >> JSP教程 >> Application/Applet >> 内容
精彩推荐
分类最新教程
分类热点教程
  
一个applet---servlet通讯的例子---servlet文件
作者:未知
日期:2003-07-26
人气:
投稿:Andy.m(转贴)
来源:未知
字体:
收藏:加入浏览器收藏
以下正文:
import java.io.*;
import java.util.Date;
import javax.servlet.*;
import javax.servlet.http.*;
public void Riceive extends HttpServlet
{
    public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    {
         res.setContenType("text/plain");
         ServletOutputStream out=res.getOutputStream();
         out.print("recive user message:");
         out.print(req.getParameter("message"));
    
    
    }//end service
    
}//end receive
相关文章: