// and obtain the ServletOAuthClient. I actually suggest downloading the ServletOAuthClient code
// and take a look how it works.
ServletOAuthClient oAuthClient = (ServletOAuthClient)request.getServletContext().getAttribute(ServletOAuthClient.class.getName());
try
{
oAuthClient.redirectRelative("pull_data.jsp", request, response);
}
catch (IOException e)
{
throw new RuntimeException(e);
}