alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

jforum example source code file (EditContent.jsp)

This example jforum source code file (EditContent.jsp) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - jforum tags/keywords

edit, editfindandreplacehelp, editpagehelp, editpagehelp, find, ho, it, save, someone, string, string, the, you, you

The jforum EditContent.jsp source code

<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%
  /* see commonheader.jsp */
  String prefEditAreaHeight = (String) session.getAttribute("prefEditAreaHeight");
%>
  
<wiki:CheckLock mode="locked" id="lock">
  <%-- need a cancel button here --%>
  <p class="error">User '<%=lock.getLocker()%>' has started to edit this page, but has not yet
    saved.  I won't stop you from editing this page anyway, BUT be aware that
    the other person might be quite annoyed.  It would be courteous to wait for the lock
    to expire or until the person stops editing the page.  The lock expires in
    <%=lock.getTimeLeft()%> minutes.
  </p>
</wiki:CheckLock>
  
<wiki:TabbedSection>
  
  <wiki:Tab id="editcontent" title="Edit Page">
  
    <wiki:CheckVersion mode="notlatest">
      <div class="warning">You are about to restore version .
        Click on "Save" to restore.  You may also edit the page before restoring it.
      </div>
    </wiki:CheckVersion>
    
    <div id="editorbar">  
    Editor:
    <select onchange="location.href=this.value">
      <wiki:EditorIterator id="editor">
        <option <%=editor.isSelected()%> value="<%=editor.getURL()%>"><%=editor.getName()%>
      </wiki:EditorIterator>
    </select>
    </div>
    
    <wiki:Editor />
    
  </wiki:Tab>
  
  <wiki:HasAttachments>
    <wiki:Tab id="attachments" title="Attachments">
      <wiki:Include page="AttachmentTab.jsp" />
    </wiki:Tab>
  </wiki:HasAttachments>
  
  <wiki:Tab id="edithelp" title="Help">
    <wiki:NoSuchPage page="EditPageHelp">
      <div class="error">
      Ho hum, it seems that the EditPageHelp<wiki:EditLink page="EditPageHelp">?
      page is missing.  Someone must've done something to the installation...
      <br />
You can copy the text from the <a href="http://www.jspwiki.org/Wiki.jsp?page=EditPageHelp">EditPageHelp page on jspwiki.org. </div> </wiki:NoSuchPage> <wiki:InsertPage page="EditPageHelp" /> </wiki:Tab> <wiki:Tab id="searchbarhelp" title="Find and Replace help"> <wiki:InsertPage page="EditFindAndReplaceHelp" /> </wiki:Tab> </wiki:TabbedSection>

Other jforum examples (source code examples)

Here is a short list of links related to this jforum EditContent.jsp source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.