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

jforum example source code file (PageActions.jsp)

This example jforum source code file (PageActions.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

add, add, attach, bottom, comment, comment, create, info, log, log, string, string, this, top

The jforum PageActions.jsp source code

<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>

<%
  /* see commonheader.jsp */
  String prefDateFormat     = (String) session.getAttribute("prefDateFormat");
  String prefTimeZone       = (String) session.getAttribute("prefTimeZone");
  String group              = request.getParameter( "group" );
%>

<div class="pageactions">
  
    <span class='quick2Top'> 

    <wiki:CheckRequestContext context='info|diff|upload|edit'>
      <span>
        <wiki:PageType type="page">
          <wiki:LinkTo>View page
        </wiki:PageType>
        <wiki:PageType type="attachment">
          <wiki:LinkToParent>View page
        </wiki:PageType>
      </span>
    </wiki:CheckRequestContext>
  
    <wiki:CheckRequestContext context='view|info|diff|upload'>
      <wiki:Permission permission="edit">
        <span>
          <wiki:PageType type="page">
            <wiki:EditLink>Edit page
          </wiki:PageType>
        </span>
      </wiki:Permission>
  
      <wiki:Permission permission="comment">
        <span>
          <wiki:PageType type="page">
            <wiki:CommentLink>Add Comment
          </wiki:PageType>
          <wiki:PageType type="attachment">
            <a href="Comment.jsp?page=
          </wiki:PageType>
        </span>
      </wiki:Permission>
    </wiki:CheckRequestContext>
  
    <wiki:PageExists>
      <wiki:CheckRequestContext context='view|info|diff|edit'>
        <wiki:PageType type="page">
          <wiki:Permission permission="upload">
            <span>
              <a href="Attach File
            </span>
          </wiki:Permission>
        </wiki:PageType>
      </wiki:CheckRequestContext>
      <span>
        <wiki:CheckRequestContext context='view|diff|edit|upload'>
          <wiki:PageInfoLink>Page Info
        </wiki:CheckRequestContext>
      </span>
    </wiki:PageExists>
  
    <wiki:CheckRequestContext context='!prefs'>
      <wiki:CheckRequestContext context='!preview'>
        <span>
          <wiki:LinkTo page="UserPreferences">My Prefs
        </span>
      </wiki:CheckRequestContext>
    </wiki:CheckRequestContext>
    
    <wiki:UserCheck status="notAuthenticated">
      <wiki:Permission permission="login">
        <span>
          <wiki:Link jsp="Login.jsp">Log in
        </span>
      </wiki:Permission>
    </wiki:UserCheck>
    
    <wiki:CheckRequestContext context='viewGroup'>
      <wiki:Permission permission="editGroup">
        <span>
          <wiki:Link jsp="EditGroup.jsp">
            <wiki:Param name="group" value="<%=group%>" />
            Edit group
          </wiki:Link>
        </span>
      </wiki:Permission>
      <wiki:Permission permission="deleteGroup">
        <span>
          <a onclick="return confirmDelete()" href="">Delete group
        </span>
      </wiki:Permission>
    </wiki:CheckRequestContext>
    
    <wiki:CheckRequestContext context='editGroup'>
      <span>
        <wiki:Link jsp="Group.jsp">
          <wiki:Param name="group" value="<%=group%>" />
          View group
        </wiki:Link>
      </span>
    </wiki:CheckRequestContext>
    
    <wiki:Permission permission="createGroups">
      <span>
        <wiki:Link jsp="NewGroup.jsp">Create group
      </span>
    </wiki:Permission>

    <wiki:UserCheck status="authenticated">
      <span>
        <wiki:Link jsp="Logout.jsp">Log out
      </span>
    </wiki:UserCheck>
  
    <wiki:CheckRequestContext context='view|diff|edit|upload|info'>
      <div class="pageInfo">
        <wiki:CheckVersion mode="latest">
           This page (revision-<wiki:PageVersion />) last changed on
           <wiki:DiffLink version="latest" newVersion="previous">
             <wiki:PageDate format='<%= prefDateFormat %>'/>
           </wiki:DiffLink>
           by <wiki:Author />.
        </wiki:CheckVersion>
  
        <wiki:CheckVersion mode="notlatest">
          This particular version was published on
            <wiki:PageDate format='<%= prefDateFormat %>'/> by .
        </wiki:CheckVersion>
  
        <wiki:NoSuchPage>Page not created yet.
  
      </div>
    </wiki:CheckRequestContext>
  
    <span class='quick2Bottom'> 

</div>

Other jforum examples (source code examples)

Here is a short list of links related to this jforum PageActions.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.