Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这里我使用Tomcat7作为服务器。我将会话设置为:
http:/localhost:8080//Chat/login.action
那么我怎样才能获得该会话:
ws://127.0.0.1:8080/Chat/chat.ws
因为我希望每个人在进入聊天页面之前都登录。我需要的是他们提交时我决定在聊天页面中使用的用户名login.action
login.action