|
jforum example source code file (InfoContent.jsp)
The jforum InfoContent.jsp source code<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %> <%@ page import="com.ecyrd.jspwiki.*" %> <% /* see commonheader.jsp */ String prefDateFormat = (String) session.getAttribute("prefDateFormat"); String prefTimeZone = (String) session.getAttribute("prefTimeZone"); /* cookie settings */ int size = 10; //default #revisions shown per page String s; s = (String)request.getParameter("size"); if( s != null ) size = Integer.parseInt(s); //String dateformat = "EEE, dd-MMM-yyyy [hh:mm]"; WikiContext c = WikiContext.findContext( pageContext ); int latestVersion = 0; try { latestVersion = c.getPage().getVersion(); } catch( Exception e ) { /* dont care */ } int start = latestVersion; s = (String)request.getParameter("start"); if( s != null ) start = Integer.parseInt(s); %> <script language="javascript" type="text/javascript"> function confirmDelete() { var reallydelete = confirm("Please confirm that you want to delete content permanently!"); return reallydelete; } </script> <wiki:PageExists> <wiki:TabbedSection defaultTab="<%=request.getParameter("tab")%>"> <%-- part 1 : normal wiki pages --%> <wiki:PageType type="page"> <wiki:Tab id="infocontent" title="Page Info"> <table cellspacing="4"> <tr> <td>Page name |
<td><%=changeNote%> | <%=changeNote%> | <% } %> <% } %> </wiki:HistoryIterator> </table> </div> <%-- versionhistory --%> </wiki:CheckVersion> <div style="clear:both; height:0px;" > </wiki:Tab> </wiki:PageType> </wiki:TabbedSection> </wiki:PageExists> <wiki:NoSuchPage> This page does not exist. Why don't you go and <wiki:EditLink>create it? </wiki:NoSuchPage>
... 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.