home | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td width="100%" nowrap> <a class="nav" href="index"> »  <a class="nav" href="myprofile"> »  <a class="nav" href="mymessage"> »  <fmt:message key="mvnforum.common.folder"/>: <%=messageBean.getFolderName()%> »  <fmt:message key="mvnforum.user.viewmessage.title"/> </td> </tr> </table> <br/> <table width="95%" align="center"> <tr class="messageText"> </table> <br/> <%if (messageBean.getMessageType() != MessageBean.MESSAGE_TYPE_PUBLIC) {%> <table width="60%" align="center"> <tr class="messageText"> <%if (messageBean.getFolderName().equalsIgnoreCase(MVNForumConstant.MESSAGE_FOLDER_DRAFT)) {%> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <%}%> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> <td width="11%" align="center" nowrap><fmt:message key=" border="0"> </tr> <tr class="messageText"> <%if (messageBean.getFolderName().equalsIgnoreCase(MVNForumConstant.MESSAGE_FOLDER_DRAFT)) {%> <td align="center" nowrap> <td align="center" nowrap> <%}%> <td align="center" nowrap> <td align="center" nowrap> <td align="center" nowrap> <td align="center" nowrap> <td align="center" nowrap> <td align="center" nowrap> <td align="center" nowrap> </tr> </table> <%} else { // a public message %> <%if (messageBean.getFolderName().equalsIgnoreCase(MVNForumConstant.MESSAGE_FOLDER_DRAFT)) {%> <table align="center"> <tr class="messageText"> <td width="33%" align="center" nowrap><fmt:message key=" border="0"> <td width="33%" align="center" nowrap><fmt:message key=" border="0"> <td width="33%" align="center" nowrap><fmt:message key=" border="0"> </tr> <tr class="messageText"> <td align="center" nowrap>     <td align="center" nowrap>     <td align="center" nowrap>     </tr> </table> <br/> <%}%> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="pagedesc"> <td align="center" class="messageText"> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/group.gif" border="0" align="middle"> <fmt:message key="mvnforum.common.legend.message.public_message"/> </td> </tr> </table> <%}%> <br/> <%if (messageBean.getMessageType() == MessageBean.MESSAGE_TYPE_QUOTE) {%> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="pagedesc"> <td align="center" class="warning"> </tr> </table> <br/> <%}%> <table class="tborder" width="95%" cellspacing="1" cellpadding="5" align="center"> <tr class="trow1"> <td width="155" rowspan="2" valign="top" nowrap> <%if (memberSenderBean != null) {%> <%if (memberSenderBean.getMemberGender()==1) {%> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/male.gif" border="0" alt="" title=""> <%} else {%> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/female.gif" border="0" alt="" title=""> <%}%> <a href="viewmember?memberid=<%=memberSenderBean.getMemberID()%>" class="memberName"><%=memberSenderBean.getMemberName()%> <br/> <%=(memberSenderBean.getMemberTitle().length() > 0) ? EnableMVNCodeFilter.filter(memberSenderBean.getMemberTitle()) : MyUtil.getMemberTitle(memberSenderBean.getMemberPostCount())%> <br/> <% if ((memberSenderBean.getMemberAvatar().length() > 0) && MVNForumConfig.getEnableAvatar() ) { %> <div align="center"><fmt:message key=" title=""> <% } else { %> <p> <% } %> <br/> <%=memberSenderBean.getMemberCountry()%>
<fmt:message key="mvnforum.user.viewthread.joined"/>: <%=onlineUser.getGMTDateFormat(memberSenderBean.getMemberCreationDate())%>
<fmt:message key="mvnforum.common.post_count"/>: <%=memberSenderBean.getMemberPostCount()%>
<fmt:message key="mvnforum.common.member.online_status"/>: <%boolean enableInvisible = MVNForumConfig.getEnableInvisibleUsers(); boolean invisible = memberSenderBean.isInvisible(); boolean online = onlineUserManager.isUserOnline(memberSenderBean.getMemberName()); if ( online && (!enableInvisible || !invisible) ) {%> <%-- (S)he is online now, the "online" text show only when the Invisible feature is disabled or his status is visible (not invisable). Otherwise, show "offline" text --%> <font color="#008000"> <%} else if (online && permission.canAdminSystem()) {%> <font color="#008000"> <%} else {%> <fmt:message key="mvnforum.common.member.offline"/> <%}%> <% } //if member has not been deleted %> </td> <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="2" class="messageText"> <tr> <td align="right" valign="top" nowrap> : <td width="100%">   <%if (messageBean.getMessageIcon().length() > 0) { out.print(EnableEmotionFilter.filter(messageBean.getMessageIcon() + "  ", ParamUtil.getContextPath() + MVNForumGlobal.EMOTION_DIR)); }%> <b><%=MyUtil.filter(messageBean.getMessageTopic(), false/*html*/, true/*emotion*/, true/*mvnCode*/, false/*newLine*/, false/*URL*/)%> </td> </tr> <tr> <td align="right" valign="top" nowrap> : <td>   <%=messageBean.getMessageSenderName()%> </tr> <tr> <td align="right" valign="top" nowrap> : <td>   <%=onlineUser.getGMTTimestampFormat(messageBean.getMessageCreationDate())%> </tr> <tr> <td align="right" valign="top" nowrap> : <td>   <%=messageBean.getMessageToList()%> </tr> <%if (messageBean.getMessageCcList().length() > 0) {%> <tr> <td align="right" valign="top" nowrap> : <td>   <%=messageBean.getMessageCcList()%> </tr> <%}%> </table> <hr size="1" noshade> <%=MyUtil.filter(messageBean.getMessageBody(), false/*html*/, true/*emotion*/, true/*mvnCode*/, true/*newLine*/, true/*URL*/)%> <% // Code to list attachments of the message Collection attachBeans = messageBean.getAttachmentBeans(); if (attachBeans != null) { for (Iterator attachIter = attachBeans.iterator(); attachIter.hasNext(); ) { PmAttachmentBean pmAttachBean = (PmAttachmentBean)attachIter.next(); %> <img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/attach.gif" border="0" alt=""> <a class="command" href="getpmattachment?message=<%=messageBean.getMessageID()%>&attach=<%=pmAttachBean.getPmAttachID()%>"><%=pmAttachBean.getPmAttachFilename()%> (<%=pmAttachBean.getPmAttachFileSize()%> bytes) <%if (messageBean.getMessageType() == MessageBean.MESSAGE_TYPE_PUBLIC) {%> (<fmt:message key="mvnforum.user.viewthread.download_count"/>: <%=pmAttachBean.getPmAttachDownloadCount()%>) <%}%> <%if (pmAttachBean.getPmAttachDesc().length() > 0) {%>(<%=MyUtil.filter(pmAttachBean.getPmAttachDesc(), false/*html*/, true/*emotion*/, true/*mvnCode*/, false/*newLine*/, true/*URL*/)%>)<%}%>
<%if (pmAttachBean.getPmAttachMimeType().startsWith("image/")) {%><%=pmAttachBean.getPmAttachFilename()%><%}%> <br/> <% }//for }//if %> <% if (memberSenderBean != null) { String signature = MyUtil.filter(memberSenderBean.getMemberSignature(), false/*html*/, true/*emotion*/, true/*mvnCode*/, true/*newLine*/, true/*URL*/); if (signature.length() > 0) { %> ----------------------------------------<br/> <%=signature%> <% } } %> </td> </tr> <tr class="trow1"> <td> <table class="trow1" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap> [<%=onlineUser.getGMTTimestampFormat(messageBean.getMessageCreationDate())%>] </td> <td width="100%"> <%if (memberSenderBean != null) {%>    <a href="viewmember?memberid=<%=memberSenderBean.getMemberID()%>"> <%if (memberSenderBean.getMemberEmailVisible() == 1) {%>    <a href="mailto:<%=memberSenderBean.getMemberEmail()%>"><%=memberSenderBean.getMemberEmail()%> <%}%> <%if ((memberSenderBean.getMemberHomepage().length() > 0) && (memberSenderBean.getMemberHomepage().equals("http://")==false)) {%>   <%=memberSenderBean.getMemberHomepage()%><%}%> <%if (memberSenderBean.getMemberYahoo().length() > 0) {%>   <%=memberSenderBean.getMemberYahoo()%><%}%> <%if (memberSenderBean.getMemberAol().length() > 0) {%>   <%=memberSenderBean.getMemberAol()%><%}%> <%if (memberSenderBean.getMemberIcq().length() > 0) {%>   <%=memberSenderBean.getMemberIcq()%><%}%> <%}%> </td> <td nowrap> <%if (MVNForumConfig.getEnableCompany()) {%> <a href="addmessage?Topic=Disscuss message=<%=messageBean.getMessageID()%>"> <%}%>  <a href="#"><fmt:message key=" title="">  </td> </tr> </table> </td> </tr> </table> <br/> </fmt:bundle> <%@ include file="footer.jsp"%> </body> </html>

What this is

This file 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.

Other links

The source code

<%--
 - $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/viewmessage.jsp,v 1.42 2005/01/28 19:11:00 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.42 $
 - $Date: 2005/01/28 19:11:00 $
 -
 - ====================================================================
 -
 - Copyright (C) 2002-2005 by MyVietnam.net
 -
 - This program is free software; you can redistribute it and/or
 - modify it under the terms of the GNU General Public License
 - as published by the Free Software Foundation; either version 2
 - of the License, or any later version.
 -
 - All copyright notices regarding mvnForum MUST remain intact
 - in the scripts and in the outputted HTML.
 - The "powered by" text/logo with a link back to
 - http://www.mvnForum.com and http://www.MyVietnam.net in the
 - footer of the pages MUST remain visible when the pages
 - are viewed on the internet or intranet.
 -
 - This program is distributed in the hope that it will be useful,
 - but WITHOUT ANY WARRANTY; without even the implied warranty of
 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 - GNU General Public License for more details.
 -
 - You should have received a copy of the GNU General Public License
 - along with this program; if not, write to the Free Software
 - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 -
 - Support can be obtained from support forums at:
 - http://www.mvnForum.com/mvnforum/index
 -
 - Correspondence and Marketing Questions can be sent to:
 - info@MyVietnam.net
 -
 - @author: Minh Nguyen  minhnn@MyVietnam.net
 - @author: Mai  Nguyen  mai.nh@MyVietnam.net
 - @author: Igor Manic   imanic@users.sourceforge.net
 --%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="java.util.*" %>
<%@ page import="net.myvietnam.mvncore.util.ParamUtil" %>
<%@ page import="net.myvietnam.mvncore.exception.AssertionException" %>
<%@ page import="net.myvietnam.mvncore.filter.EnableEmotionFilter" %>
<%@ page import="net.myvietnam.mvncore.filter.EnableMVNCodeFilter" %>
<%@ page import="com.mvnforum.db.*" %>
<%@ page import="com.mvnforum.MVNForumConfig" %>
<%@ page import="com.mvnforum.MVNForumGlobal" %>
<%@ page import="com.mvnforum.MVNForumConstant" %>
<%@ page import="com.mvnforum.MyUtil" %>

<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<%
MessageBean messageBean  = (MessageBean)request.getAttribute("MessageBean");
MemberBean memberSenderBean = (MemberBean)request.getAttribute("MemberSenderBean");
%>
<html 
<head>
  <title> -  - <%=messageBean.getMessageTopic()%>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>

<table width="95%" align="center">
  <tr class="nav">
    <td>
<form> <fmt:message key="mvnforum.common.message.jump_to_folder"/> » <select name="FastGoFolder" onChange="gotoPage(this.options[this.selectedIndex].value)"> <option value=""> <option value="mymessage?folder=Inbox">Inbox <option value="mymessage?folder=Sent">Sent <option value="mymessage?folder=Draft">Draft </select> </form> </td>


my book on functional programming

 

new blog posts

 

Copyright 1998-2019 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.