I want to create a server side program in Java in which there r 2 requests and responses,
1. A client comes and gives its userid and password, Server validates it and returns his userid and a url addr (which stored somewhere in the database or a file system) to the user.
2.Now from this URL he can have access to number of other url locations, for eg, from say http://yahoo.com
, he can land up in accessing any number of other URLs by following the links. Now i want this subsequent urls to be given back to the user. These subsequent links r also stored somewhere in the database or file system.
i need to know how do i go about writing the program without creating a client. Pls explain with the code.