response.sendRedirect(destinationURL);
return;
}
catch (IOException e)
{
throw new OpenIDProtocolException(e);
}
}
//Version != 1
// Option 2: HTML FORM Redirection (Allows payloads >2048 bytes)
RequestDispatcher dispatcher =
this.servletContext.getRequestDispatcher("/formredirection.jsp");
request.setAttribute("parameterMap", paramMap);
request.setAttribute("destinationUrl", destinationURL);
try
{
dispatcher.forward(request, response);
}
catch(IOException io)
{
throw new OpenIDProtocolException(io);
}
catch (ServletException e)
{
throw new OpenIDProtocolException(e);
}
}