This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
I have the following things, 1. html page having Ajax calls to my servlet 2. servlet hits an external URL 3. servlet reads the externals URL's data completely 4. servlet writes the whole data to the client (browser that made Ajax call)
Now, I want to eliminate this servlet reading complete data from the URL and somehow say that "URL's output should directly go to the client's output"... Basically I want to have client and destination directly connected AFTER client connects to the servlet.
The reason I have to use the servlet in between is Ajax sandbox which doesn't allow me connect to some server directly other than where it came from (just like Applet). BUT this intermediate servlet is making things slower as I have to read complete data and write the data to client.