Will doing such make the user-agent behave like it has just clicked a link?
Also, I tried the response.sendRedirect("tel:555555555"); approach recommended by Christopher and that resulted in a MalFormed URL error on the phone. thanks On Tue, Mar 3, 2009 at 1:56 PM, Juha Laiho <juha.la...@iki.fi> wrote: > 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 > >