| |

VerySource

 Forgot password?
 Register
Search
View: 808|Reply: 3

How to use JAVA to achieve multi-person chat in IE? With application?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-18 07:30:01
| Show all posts |Read mode
I want to use JAVA in IE to realize the function of sharing chat between several people. Is it to be implemented by application? How should I write it?
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-22 18:15:01
| Show all posts
application is an instance of ServletContext

The scope of ServletContext exists in the entire server, all users can access

Chat information is encapsulated into objects, and then put into this range

ServletContext.setAttribute ("key", chat history);

Then just use the getAttribute method when needed. .
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-5-26 20:00:01
| Show all posts
I have seen that pure JSP can also do
Reply

Use magic Report

1

Threads

6

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-31 01:30:01
| Show all posts
<%
request.getServletContext (). setAttribute ("ni hao", "ni hao");

request.getServletContext (). getAttribute ("ni hao");
%>
I wonder if this is the case
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list