【Servlet】获取并输出服务器获得的数据

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_43560272/article/details/102608330

获取:

String name = req.getParameter(“username”);
System.out.println(name);

输出

PrintWriter pw = resp.getWriter();
pw.write(name);

猜你喜欢

转载自blog.csdn.net/weixin_43560272/article/details/102608330
今日推荐