首页>代码>java+html5的websocket简单实现BS聊天DEMO实例>/websocket/src/main/java/com/hgq/websocket/LoginServlet.java
package com.hgq.websocket;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LoginServlet extends HttpServlet
{
    public void doGet(HttpServletRequest request , HttpServletResponse response) throws ServletException, IOException
    {

        doPost(request, response);
    }

    public void doPost(HttpServletRequest request , HttpServletResponse response) throws ServletException, IOException
    {

        String userName = request.getParameter("userName");
        request.setAttribute("uname", userName);
        request.getRequestDispatcher("MyJsp.jsp").forward(request, response);
    }

}
最近下载更多
mrcao95  LV2 2023年6月26日
人工智能4708  LV11 2023年5月8日
frozenmns  LV1 2023年3月11日
lironggang  LV38 2023年2月16日
Tg171017  LV12 2023年2月3日
beyang  LV1 2021年12月23日
1643472948  LV4 2021年12月19日
zlj-zjl  LV1 2021年6月20日
zjmyyds  LV1 2020年12月7日
kifura  LV1 2020年12月2日
最近浏览更多
wuyingya12  LV8 5月23日
xxxyyyddd 2024年10月8日
暂无贡献等级
krispeng  LV15 2024年8月31日
欠踹de背影  LV25 2024年3月7日
80730176  LV7 2023年12月8日
1234567p  LV1 2023年12月4日
微信网友_6627705560322048  LV1 2023年8月30日
mrcao95  LV2 2023年6月26日
luokai123  LV1 2023年6月11日
七梦辞  LV2 2023年5月25日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友