Q:

How to create a web proxy? 

I want to create web proxy .  I googled it and even found some tutorial but those were in PHP. 
If somebody is having tutorial of web proxy creation in java then please post it here Or simply let me know what approach should i follow to create  web proxy. [  i will be using Tomcat { if that matters for your answer } ]
Thanks
Edit
i guess i was not clear in stating what i require.  Actually i am trying to develop a site like 'http://proxyug.com/' .  

A:

JSocks is a SOCKS proxy server written in Java. 
http://jsocks.sourceforge.net/

