Hi Sergiu,
On Tue, Sep 30, 2008 at 4:13 AM, Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
I was about to add a similar root webapp, but a
simple one that would
just redirect calls to /xwiki/, in order to solve
http://jira.xwiki.org/jira/browse/XE-289 . I could merge my (silly
simple) code with yours sometime later.
Mine is silly simple too :)
<code>
protected void doOptions(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
response.setStatus(HttpServletResponse.SC_OK);
response.setHeader("MS-Author-Via", "DAV");
response.setHeader("Content-Language", "en");
response.setHeader("DAV", "1,2");
response.setHeader("Allow", "OPTIONS, GET, HEAD, PROPFIND, LOCK,
UNLOCK");
response.setHeader("Content-Length", "0");
response.flushBuffer();
}
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
resp.sendRedirect("/xwiki/");
}
</code>
That's all!.
So you already did the redirect to /xwiki/ on doGet. Merge done!
--
Sergiu Dumitriu