Hi,
with commit 895520 from 04.01.2010 the
RequstUtils.toAbsolutePath(final String relativePagePath) method
disappeared without warning
This one was very useful and has never marked as deprecated. I am
wondering if this was by accident - the commit was very huge. It was
the RequestCycle refactoring.
The method in questions is:
/**
* Calculates absolute path to url relative to another absolute url.
*
* @param relativePagePath
* path, relative to requestPath
* @return absolute path for given url
*/
public final static String toAbsolutePath(final String relativePagePath)
{
HttpServletRequest req =
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest();
return toAbsolutePath(req.getRequestURL().toString(),
relativePagePath);
}
Best regards,
Christian
--
http://www.grobmeier.de