The setRecipientTag resets the value of the address to null after each 
use, so the tag itself can bereused.  I don't  know why it is not 
working for you.  I have never used orion.   My suggestion is if you are 
familiar with java to add some System.out.println() to the setRecipient 
tag and check the value of the address variable at different points. 
 Sorry I can't be more helpful.

Rich Catlett

Chris Evans wrote:

>I get the same results with the 20020423 build as with version 1.
>
>I'm running it under Orion 1.5.2, if that's any help.
>The cc parameter, coming from premailer.html to mailer.jsp, is correct.
>
>----------------------
>Web.xml
>----------------------
><?xml version="1.0" encoding="ISO-8859-1"?>
>
><!DOCTYPE web-app
>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
><web-app>
>   <servlet>
>   <servlet-name>dat</servlet-name>
> <servlet-class>com.canlink.framework.platform.ProxyServlet</servlet-class>
>   </servlet>
>   <servlet>
> <servlet-name>lm</servlet-name>
> <load-on-startup>1</load-on-startup>
>
><servlet-class>com.canlink.framework.platform.RemoteAccessServlet</servlet-c
>lass>
>        <init-param>
>        <param-name>registryPort</param-name>
>        <param-value>15989</param-value>
>    </init-param>
>   </servlet>
>   <servlet>
>       <servlet-name>sendMail</servlet-name>
> <servlet-class>com.canlink.framework.util.MailServlet</servlet-class>
>   </servlet>
>    <display-name>Mailer Tag Library</display-name>
>    <description>
> Example web application illustrating the use of tag in the "mailer"
> custom tag library for sending mail, from the JAKARTA-TAGLIBS project.
>    </description>
>    <welcome-file-list>
>        <welcome-file>index.jsp</welcome-file>
>        <welcome-file>index.html</welcome-file>
>        <welcome-file>index.htm</welcome-file>
>    </welcome-file-list>
>    <taglib>
>
><taglib-uri>http://jakarta.apache.org/taglibs/mailer-1.0</taglib-uri>
>        <taglib-location>/WEB-INF/mailer.tld</taglib-location>
>    </taglib>
></web-app>
>----------------------
>mailer.jsp
>----------------------
><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
><html>
><%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.0"; prefix="mt" %>
><%@ page language="java" %>
>     <head>
>          <title>Example JSP using mailer taglib</title>
>     </head>
>     <body bgcolor="#FFFFFF">
>     <!-- The server, session, or mimeMessage attributes are not
>requiired -->
>     <!-- the mail server used will be localhost. -->
>     <mt:mail server="<%=request.getParameter(\"server\") %>">
> <mt:setrecipient
>type="to"><%=request.getParameter("to")%></mt:setrecipient>
> <mt:from><%=request.getParameter("from")%></mt:from>
> <mt:setrecipient
>type="cc"><%=request.getParameter("cc")%></mt:setrecipient>
> <mt:subject><%=request.getParameter("subject")%></mt:subject>
> <mt:message><%=request.getParameter("message")%></mt:message>
> <mt:send>
>   <p>The following errors occured<br/><br/>
>   <mt:error id="err">
>     <jsp:getProperty name="err" property="error"/><br/>
>   </mt:error>
>   <br/>Please back up a page, fix the error and resubmit.</p>
> </mt:send>
>     </mt:mail>
>
>     <p>The message has been successfully sent.</p>
>     </body>
></html>
>----------------------
>
>Chris Evans
>Canlink Interactive Technologies
>www.canlink.com
>Work: 613-549-7883 ext 32
>Cell:    613-539-3900
>
>Codito, Ergo Sum
>
>
>----- Original Message -----
>From: "Chris Evans" <[EMAIL PROTECTED]>
>To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, April 24, 2002 1:28 PM
>Subject: Re: Mail Tag CC error
>
>
>| I picked up version 1.  I'm going to try the latest.
>|
>|
>|
>|
>| Chris Evans
>| Canlink Interactive Technologies
>| www.canlink.com
>| Work: 613-549-7883 ext 32
>| Cell:    613-539-3900
>|
>| Codito, Ergo Sum
>|
>|
>| ----- Original Message -----
>| From: "Rich Catlett" <[EMAIL PROTECTED]>
>| To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>| Sent: Wednesday, April 24, 2002 11:00 AM
>| Subject: Re: Mail Tag CC error
>|
>|
>| | How old is the version you are using, that was fixed a while ago..
>| |  Address values in the setRecipient tag are reset to null after each
>use.
>| |
>| | Rich Catlett
>| |
>| | Chris Evans wrote:
>| |
>| | >Hey everybody,
>| | >
>| | >I've setup the mailer tag library example(premailer.html, mailer.jsp)
>and
>| it works, for the most part.  Here's the problem:
>| | >No matter what I put in the CC field, it uses the TO field instead.  Is
>| this a bug?
>| | >
>| | >Thanks,
>| | >
>| | >
>| | >
>| | >Chris Evans
>| | >Canlink Interactive Technologies
>| | >www.canlink.com
>| | >Work: 613-549-7883 ext 32
>| | >Cell:    613-539-3900
>| | >
>| | >Codito, Ergo Sum
>| | >
>| | >
>| | >
>| |
>| |
>| |
>| |
>| | --
>| | To unsubscribe, e-mail:
>| <mailto:[EMAIL PROTECTED]>
>| | For additional commands, e-mail:
>| <mailto:[EMAIL PROTECTED]>
>| |
>|
>|
>| --
>| To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>| For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>|
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to