|
jforum example source code file (NewGroupContent.jsp)
The jforum NewGroupContent.jsp source code
<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%@ page import="java.security.Principal" %>
<%@ page import="java.util.Arrays" %>
<%@ page import="com.ecyrd.jspwiki.auth.PrincipalComparator" %>
<%@ page import="com.ecyrd.jspwiki.auth.authorize.Group" %>
<%@ page import="com.ecyrd.jspwiki.auth.authorize.GroupManager" %>
<%@ page errorPage="/Error.jsp" %>
<%
// Extract the group name and members
String name = request.getParameter( "group" );
Group group = (Group)pageContext.getAttribute( "Group",PageContext.REQUEST_SCOPE );
Principal[] members = null;
if ( group != null )
{
name = group.getName();
members = group.members();
Arrays.sort( members, new PrincipalComparator() );
}
%>
<h3>Create New Group
<wiki:Messages div="error" topic="<%=GroupManager.MESSAGES_KEY%>" prefix="Error: "/>
<div class="formcontainer">
<div class="instructions">
This page allows you to create a new wiki group.
</div>
<form id="createGroup" action="
Other jforum examples (source code examples)Here is a short list of links related to this jforum NewGroupContent.jsp source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
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.