Pages

Wednesday, February 9, 2011

Java Client - Server chat --- very Basic SOCKET PROGRAMMING

Compile both Programs and create clas filesOpen 2 cmd's .In one of thos enterjava serverand in otherjava clientserver.javaimport java.net.*;import java.io.*;public class server{public static void main(String [] ar){int port = 6666;try{ServerSocket ss=new ServerSocket(port);System.out.println("Waiting for a client....");Socket socket=ss.accept();System.out.println("Got a client...");System.out.println();InputStream sin=socket.getInputStream();OutputStream sout=socket.getOutputStream();DataInputStream...
Read more

Saturday, February 5, 2011

User Login in JSP

User Login in JSPEvery website and software in the world is having login facility. Login gives access rights to user and defines their role in website and application. Nobody can access website if they failure in proving their identity on website or application.Registration is first step by login to website. We will keep focus on only user login in JSP.User login contain two fields, first one important User ID. This is unique ID provided by site owner or software...
Read more