jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From catl...@apache.org
Subject cvs commit: jakarta-taglibs/mailer/src/org/apache/taglibs/mailer AttachTag.java
Date Sat, 07 Sep 2002 18:47:33 GMT
catlett     2002/09/07 11:47:33

  Modified:    mailer/src/org/apache/taglibs/mailer AttachTag.java
  Log:
  fixed bug 12364
  
  Revision  Changes    Path
  1.5       +5 -4      jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/AttachTag.java
  
  Index: AttachTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/AttachTag.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AttachTag.java	28 Jun 2001 15:40:29 -0000	1.4
  +++ AttachTag.java	7 Sep 2002 18:47:33 -0000	1.5
  @@ -107,7 +107,7 @@
       /**
        * object in which the attachment is stored within the e-mail message
        */
  -    MimeBodyPart mbp = new MimeBodyPart();
  +    MimeBodyPart mbp = null;
   
       /**
        *  implementation of the method from the tag interface that tells the JSP
  @@ -125,6 +125,7 @@
   	// parent tag must be a MailTag, gives access to methods in parent
   	MailTag myparent = (MailTag)javax.servlet.jsp.tagext.TagSupport.findAncestorWithClass(this,
MailTag.class);
           String body;  // the body for this email
  +	mbp = new MimeBodyPart();  // create the bodypart for this attachment
   
   	if (myparent == null)
   	    throw new JspException("Message tag not nested within mail tag.");
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message