alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td width="100%" nowrap> <a class="nav" href="index"> »  <a class="nav" href="myprofile"> »  <fmt:message key="mvnforum.user.changeavatar.title"/> </td> </tr> </table> <br/> <% MemberBean memberBean = (MemberBean)request.getAttribute("MemberBean"); %> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="pagedesc"> <td> <fmt:message key="mvnforum.user.changeavatar.guide"/> </td> </tr> </table> <br/> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td colspan="2"> </tr> <tr class="trow1"> <td width="16%" height="160" align="center" valign="middle"> <img name="AvatarPreview" <% if (memberBean.getMemberAvatar().length() > 0) { %> src="<%=memberBean.getMemberAvatar_processed()%>" <% } else { %> src="<%=contextPath%>/mvnplugin/mvnforum/images/user/no_picture.gif" <% } %> border="0" alt="<fmt:message key="mvnforum.user.changeavatar.avatar_preview"/>" title=""> </td> <td height="160"> <form method="post" action="updateavatar"> <select name="MemberAvatar" size="10" onChange="MM_swapImage('AvatarPreview', '', this.options[this.selectedIndex].id, 1);"> <option value="" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/no_picture.gif" selected> <option value="/mvnplugin/mvnforum/images/user/boy1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/boy1.gif">Boy 1 <option value="/mvnplugin/mvnforum/images/user/christmas1.jpg" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/christmas1.jpg">Christmas 1 <option value="/mvnplugin/mvnforum/images/user/dog2.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/dog2.gif">Dog 2 <option value="/mvnplugin/mvnforum/images/user/drummer.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/drummer.gif">Drummer <option value="/mvnplugin/mvnforum/images/user/humor.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/humor.gif">Humor Face <option value="/mvnplugin/mvnforum/images/user/quake_tux.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/quake_tux.gif">Quake Tux <option value="/mvnplugin/mvnforum/images/user/cool_tux.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/cool_tux.gif">Cool Tux <option value="/mvnplugin/mvnforum/images/user/man1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/man1.gif">Man 1 <option value="/mvnplugin/mvnforum/images/user/mickey1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/mickey1.gif">Mickey 1 <option value="/mvnplugin/mvnforum/images/user/mickey2.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/mickey2.gif">Mickey 2 <option value="/mvnplugin/mvnforum/images/user/tigerwalk.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/tigerwalk.gif">Tiger walk <option value="/mvnplugin/mvnforum/images/user/bearwalk.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/bearwalk.gif">Bear walk <option value="/mvnplugin/mvnforum/images/user/elephant_dancing.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/elephant_dancing.gif">Elephant dancing <option value="/mvnplugin/mvnforum/images/user/elephant1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/elephant1.gif">Elephant 1 <option value="/mvnplugin/mvnforum/images/user/bird1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/bird1.gif">Bird 1 <option value="/mvnplugin/mvnforum/images/user/dog1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/dog1.gif">Dog 1 <option value="/mvnplugin/mvnforum/images/user/fish1.gif" id="<%=contextPath%>/mvnplugin/mvnforum/images/user/fish1.gif">Fish 1 </select> <br> <input type="button" value=" </form> </td> </tr> </table> <br/> <table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center"> <tr class="theader"> <td> </tr> <tr class="trow1"> <td> <form method="post" action="uploadavatar" enctype="multipart/form-data" name="submitform"> <input type="file" value=" <input type="button" name="submitbutton" value=" </form> </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/changeavatar.jsp,v 1.39 2005/01/27 13:40:41 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.39 $
 - $Date: 2005/01/27 13:40:41 $
 -
 - ====================================================================
 -
 - 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
 --%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="com.mvnforum.db.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<html 
<head>
  <title> - 
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
</script>

<script type="text/javascript">
function SubmitForm() {
  if (ValidateForm() == true ) {
    document.submitform.submitbutton.disabled=true;
    document.submitform.submit();
  }
}

function ValidateForm() {
  if (isBlank(document.submitform.PictureFile, "Picture File")) return false;
  return true;
}
</script>

<%@ include file="header.jsp"%>
<br/>

<table width="95%" align="center">
  <tr class="nav">
    <td>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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