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

jforum example source code file (Favorites.jsp)

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

aggregate, favorites, favorites, leftmenu, leftmenu, leftmenufooter, leftmenufooter, my, please, rss, string, string, wiki, wikicontext

The jforum Favorites.jsp source code

<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%@ page import="com.ecyrd.jspwiki.*" %>

  <%
    //  Determine the name for the user's favorites page
    WikiContext c = WikiContext.findContext( pageContext );
    String pagename = c.getName();
    String username = null;
 
    username = c.getEngine().getVariable( c, "username" );
    if( username == null ) username = "";

    String myFav = username + "Favorites";
  %>

<!--
<div> <wiki:UserCheck status="known"> <wiki:PageExists page="<%=myFav %>"> <div class="myfavorites"> <h4 class="boxtitle"> <wiki:LinkTo page="<%=myFav %>" >My Favorites </h4> <wiki:InsertPage page="<%=myFav %>"/> </div> </wiki:PageExists> </wiki:UserCheck> <%-- LeftMenu is automatically generated from a Wiki page called "LeftMenu" --%> <div class="leftmenu"> <wiki:InsertPage page="LeftMenu" /> <wiki:NoSuchPage page="LeftMenu"> <div class="error"> <wiki:EditLink page="LeftMenu">Please make a LeftMenu. </div> </wiki:NoSuchPage> </div> <div class="username"> <wiki:UserCheck status="asserted"> <p>G'day <wiki:Translate>[]
(not logged in)

</wiki:UserCheck> <wiki:UserCheck status="authenticated"> <p>G'day <wiki:Translate>[]
(authenticated)

</wiki:UserCheck> </div> <wiki:Include page="PageActions.jsp"/> <div class="leftmenufooter"> <wiki:InsertPage page="LeftMenuFooter" /> <wiki:NoSuchPage page="LeftMenuFooter"> <div class="error"> <wiki:EditLink page="LeftMenuFooter">Please make a LeftMenuFooter. </div> </wiki:NoSuchPage> </div> <div class="wikiversion"><%=Release.APPNAME%> v<%=Release.getVersionString()%>
<div class="rssfeed">
</div>

Other jforum examples (source code examples)

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