<%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <%@ page import="java.security.Principal" %> <%@ page import="java.text.MessageFormat" %> <%@ page import="java.util.*" %> <%@ page import="org.apache.wiki.WikiContext" %> <%@ page import="org.apache.wiki.auth.*" %> <%@ page import="org.apache.wiki.auth.PrincipalComparator" %> <%@ page import="org.apache.wiki.auth.authorize.Group" %> <%@ page import="org.apache.wiki.auth.authorize.GroupManager" %> <%@ page import="org.apache.wiki.preferences.Preferences" %> <%@ page import="org.apache.log4j.*" %> <%@ page errorPage="/Error.jsp" %> <%@ page import="javax.servlet.jsp.jstl.fmt.*" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%! String printWikiGroupPutGroup( Group group, String name, boolean cursor, PageContext pageContext) { Principal[] m = group.members(); java.util.Arrays.sort( m, new PrincipalComparator() ); String delim = "\", \""; StringBuffer ss = new StringBuffer(); MessageFormat mf = null; Object[] args = null; ss.append( "WikiGroup.putGroup( \"" ); ss.append( name ); ss.append( delim ); for( int j=0; j < m.length; j++ ) { ss.append( m[j].getName().trim()+"\\n" ); } ss.append( delim ); mf = new MessageFormat(LocaleSupport.getLocalizedMessage(pageContext, "grp.createdon") ); args = new Object[]{(group.getCreated()==null) ? "" : Preferences.renderDate(WikiContext.findContext( pageContext ), group.getCreated(),Preferences.TimeFormat.DATETIME), group.getCreator()}; ss.append( mf.format( args ) ); mf = new MessageFormat(LocaleSupport.getLocalizedMessage(pageContext, "grp.lastmodified") ); args = new Object[]{(group.getLastModified()==null) ? "" : Preferences.renderDate(WikiContext.findContext( pageContext ), group.getLastModified(),Preferences.TimeFormat.DATETIME), group.getModifier()}; ss.append( mf.format( args ) ); ss.append( "\", " ); ss.append( ( cursor ) ? "true" : "false" ); ss.append( ");\n" ); return ss.toString(); } %>
' ) && WikiGroup.onSubmit( this.form, '' );" />

[{Groups}]

<% String groupname = request.getParameter( "group" ); %> <%-- WikiGroup.putGroup( "Group1qsdf qsdf qsdf qsdf qsdffsdfq en nog een beetje langer he", "Member1\nMember2\nMember3\nMember4\nMember5\nMember6", "createdon", "createdby", "changedon", "changedby" ); --%>