HttpServletResponse response = context.getResponse();
RequestDispatcher dispatcher = request.getRequestDispatcher("/" + _location);
if (dispatcher == null)
throw new ApplicationRuntimeException(
Tapestry.format("AbstractEngine.unable-to-find-dispatcher", _location));
try
{
dispatcher.forward(request, response);
}
catch (ServletException ex)
{
throw new ApplicationRuntimeException(
Tapestry.format("AbstractEngine.unable-to-forward", _location),
ex);
}
catch (IOException ex)
{
throw new ApplicationRuntimeException(
Tapestry.format("AbstractEngine.unable-to-forward", _location),
ex);
}
}