<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %> <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <%@ page import="com.ecyrd.jspwiki.*" %> <%@ page import="com.ecyrd.jspwiki.auth.*" %> <%@ page import="com.ecyrd.jspwiki.auth.permissions.*" %> <%@ page import="com.ecyrd.jspwiki.tags.*" %> <%@ page import="com.ecyrd.jspwiki.filters.SpamFilter" %> <%@ page import="com.ecyrd.jspwiki.ui.*" %> <%@ page import="com.ecyrd.jspwiki.rpc.*" %> <%@ page import="com.ecyrd.jspwiki.rpc.json.*" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="/WEB-INF/stripes.tld" prefix="stripes" %> <%@ page import="com.ecyrd.jspwiki.action.WikiContextFactory" %> <%-- This is a plain editor for JSPWiki. --%> <% WikiContext context = WikiContextFactory.findContext( pageContext ); WikiEngine engine = context.getEngine(); String contextPath = request.getContextPath(); TemplateManager.addResourceRequest( context, "script", contextPath + "/scripts/jspwiki-edit.js" ); TemplateManager.addResourceRequest( context, "script", contextPath + "/scripts/posteditor.js" ); String usertext = EditorManager.getEditedText( pageContext ); %> <%-- this is a new page, check if we're cloning --%> <% String clone = request.getParameter( "clone" ); if( clone != null ) { WikiPage p = engine.getPage( clone ); if( p != null ) { AuthorizationManager mgr = engine.getAuthorizationManager(); PagePermission pp = new PagePermission( p, PagePermission.VIEW_ACTION ); try { if( mgr.checkPermission( context.getWikiSession(), pp ) ) { usertext = engine.getPureText( p ); } } catch( Exception e ) { /*log.error( "Accessing clone page "+clone, e );*/ } } } %> <% if( usertext == null ) { usertext = engine.getPureText( context.getPage() ); } %> <% if( usertext == null ) usertext = ""; %>
<%-- Required for IE6 on Windows --%>
<%-- Edit.jsp relies on these being found. So be careful, if you make changes. --%>

<%=SpamFilter.insertInputFields( pageContext )%>

<%-- This following field is only for the SpamFilter to catch bots which are just randomly filling all fields and submitting. Normal user should never see this field, nor type anything in it. --%>
Authentication code:
<%--FIXME --%>
   FIXME

/>

/>