<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page import="java.io.Serializable"%> <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki"%> <%@ page import="com.ecyrd.jspwiki.*" %> <%@ page import="com.ecyrd.jspwiki.ui.*" %> <%@ page import="com.ecyrd.jspwiki.tags.*" %> <%@ page import="com.ecyrd.jspwiki.attachment.*" %> <%@ page import="com.ecyrd.jspwiki.providers.*" %> <%@ page import="org.apache.commons.lang.*" %> <%-- This provides the WikiWizard editor for JSPWiki. --%> <% WikiContext context = WikiContext.findContext( pageContext ); String usertext = EditorManager.getEditedText( pageContext ); String changenote = (String)session.getAttribute("changenote"); changenote = changenote != null ? TextUtil.replaceEntities(changenote) : ""; %> <% if( usertext == null ) { usertext = context.getEngine().getPureText( context.getPage() ); }%> <% if( usertext == null ) usertext = ""; %>
" name="editForm" enctype="application/x-www-form-urlencoded">

<%-- Edit.jsp relies on these being found. So be careful, if you make changes. --%> " /> " />

<% // Create attachment list WikiEngine engine = context.getEngine(); AttachmentManager mgr = engine.getAttachmentManager(); WikiPage ourPage = context.getPage(); String attString = ""; if (mgr.attachmentsEnabled()) { try { if (ourPage != null && engine.pageExists(ourPage)) { Collection atts = mgr.listAttachments(ourPage); if (atts != null) { Iterator iterator; iterator = atts.iterator(); while (iterator.hasNext()) { Attachment att = (Attachment) iterator.next(); attString = attString + att.getFileName() + ";"; } } } } catch (ProviderException e) { e.printStackTrace(); } } // Create breadcrumb list String bcString = ""; BreadcrumbsTag.FixedQueue trail = (BreadcrumbsTag.FixedQueue) session.getAttribute("breadCrumbTrail"); if( trail != null ) { for( int i = 0; i < trail.size() - 1; i++ ) { String curPage = (String) trail.get(i); bcString += curPage + ";"; } } //Get maxsize for attachment uploads int maxSize = TextUtil.getIntegerProperty( engine.getWikiProperties(), AttachmentManager.PROP_MAXSIZE, Integer.MAX_VALUE ); %> true" /> " /> " /> Applets are currently not supported by your browser. Please download Java, so you can use the WikiWizard editor.
" />