If a user is clicking on something, what URL are they going to? It seems like you want this to be a dynamic URL. Do you know how to do that? Then when the click comes through as a request, it seems like you want it to be handled dynamically. Do you know how to map a servlet to a wildcard URL? Or perhaps the dynamic part of your URL should just be a query parameter.
Why don't you just spell out what you've done so far so that people can see if you're heading in the right direction.
Jon Emerson
http://blogs.adobe.com/jon.emerson/