Hi, I'm new to jsp
I'm writing a java code of simple chat application that consists of an applet on client side and a java server page on server side.
My applet is fine but the jsp code shows unusual errors and in most of the cases the browser simply hangs up
Here's my code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>CHAT</title>
</head>
<body>
<%@ page import="java.net.*" %>
<%@ page import="java.io.*" %>
<%
ServerSocket socket = new ServerSocket(8282);
Socket insocket = socket.accept( );
BufferedReader in = new BufferedReader (new
InputStreamReader(insocket.getInputStream()));
PrintWriter myout = new PrintWriter (insocket.getOutputStream(),
true);
String instring = in.readLine();
out.println("The server got this: " + instring);
insocket.close();
%>
<applet name='isteapplet' code='chatclient2.class' width=400 height=500>
</applet>
</body>
</html>