package com.xpn.xwiki.web;

import com.xpn.xwiki.XWikiContext;
import com.xpn.xwiki.XWikiException;

/**
 * Created by IntelliJ IDEA.
 * User: ludovic
 * Date: 17 dec. 2006
 * Time: 22:55:08
 * To change this template use File | Settings | File Templates.
 */
public class UnknownAction extends XWikiAction {

    // hook
    public String render(XWikiContext context) throws XWikiException {
        return "exception";
    }
}

@@ -1,263 +1,999 @@
-package com.xpn.xwiki.web;%0A%0Aimport com.xpn.xwiki.XWikiContext;%0Aimport com.xpn.xwiki.XWikiException;%0A%0A/**%0A * Created by IntelliJ IDEA.%0A * User: ludovic%0A * Date: 17 dec. 2006%0A * Time: 22:55:08%0A * To change this template use File %7C Settings %7C File Templates.%0A */
+/*%0A * Copyright 2006-2007, XpertNet SARL, and individual contributors as indicated%0A * by the contributors.txt.%0A *%0A * This is free software; you can redistribute it and/or modify it%0A * under the terms of the GNU Lesser General Public License as%0A * published by the Free Software Foundation; either version 2.1 of%0A * the License, or (at your option) any later version.%0A *%0A * This software is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this software; if not, write to the Free%0A * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA%0A * 02110-1301 USA, or see the FSF site: http://www.fsf.org.%0A *%0A */%0A%0Apackage com.xpn.xwiki.web;%0A%0Aimport com.xpn.xwiki.XWikiContext;%0Aimport com.xpn.xwiki.XWikiException;%0A
 %0Apub
@@ -1043,20 +1043,8 @@
  %7B%0A%0A
-    // hook%0A
     
@@ -1124,16 +1124,71 @@
   return
+ context.getWiki().Param(%22xwiki.unknownActionResponse%22,
  %22except
@@ -1191,16 +1191,17 @@
 ception%22
+)
 ;%0A    %7D%0A

Apply codestyle