Jonathan Mast wrote: > I would like to know how to imitate the click of link in JSP or serlvet, in > order to track clicks. > > I have pages with links containing tel protocol URIs like this: > Click <a href="tel:5555555555">here</a> to listen! > > I want to replace the above with something like this: > Click <a href="call_tracking.jsp?pn=5555555555">here</a> to listen! > > And have call_tracking.jsp do its tracking stuff and then spawn a phone > call, just like the first example does.
That looks like your jsp should return a HTTP 303 "See Other" redirect status with the desired 'tel:xxx' URL as the redirect target (or, HTTP 302 "Found" for compatibility). Please see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 for details. -- ..Juha --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org