Here is some quick and dirty JSP to demonstrate. Put both files in the same directory. ------------sender.jsp---------------------------------------- -------------------------------bouncer.jsp--------------------------
Try this listener. But, please be careful, you will throw a java.lang.StackOverflowError if you let the count go too high. Maybe someone will post code to catch it gracefully.
For testing you could use the following two JSPs. A.jsp
Of course, I am using windows. build.xml is in the web app's root directory(in my example "forum" is the context). Put your source code into src directory and place that into forum directory.