You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by David Wynter <da...@stpenable.com> on 2004/10/19 10:47:49 UTC

[Jelly] Email tags not there, so can you use Commons email

Hi,

I checked CVS and it seems that the email tablib was reomved abotu 20 months
ago. But then I found this patch file referring to the tagloib
http://jira.codehaus.org/secure/attachment/12650/mpannouncement-9.patch


So the alternatice seems to be that you use the define tag (although not too
familiar with it)  to define the commons SimpleEmail class and set up the
values from there. But unfortunately it seems that not all required
attribute values can be set as it is not a Bean, e.g. addTo() for adding
recipients. Ideas on how to approach this, point me to soem exmaples if
possible, I

David Wynter


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [Jelly] Email tags not there, so can you use Commons email

Posted by David Wynter <da...@roamware.co.uk>.
Hi,

I did try it with this (email addresses obscured)

<j:jelly xmlns:j="http://www.blah.com/ns/jelly"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.blah.com/ns/jelly jelly.xsd"
xmlns:b="jelly:blissed" xmlns:em="jelly:email">
  <b:blissed trim="true">
    <b:process name="sendmail" var="sendmail" start="1">
      <b:state name="1">
        <b:description>
          This sends an email when the RD FI reconciliation file retrieval
task has completed
        </b:description>
        <b:activity>
          <em:email from="david@********.co.uk"
                 to="david@********.com"
                 subject="RD FI reconciliation file retrieval task has
completed"
                 server="10.0.0.1" >
                 RD FI reconciliation file retrieval task has completed.
Look at the timestamp of this message to see when.
           </em:email>
        </b:activity>
      </b:state>
    </b:process>
  </b:blissed>
</j:jelly>

Ignore the blissed tags, they work.

And got this.

java.lang.ClassNotFoundException: email
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1406)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1254)
	at org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:993)
	at
org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java:601)
....

Don't know why it does not work.

David

-----Original Message-----
From: Dion Gillard [mailto:dion.gillard@gmail.com]
Sent: 20 October 2004 07:55
To: Jakarta Commons Users List
Subject: Re: [Jelly] Email tags not there, so can you use Commons email


Huh?

The email taglib is still there...

look in jakarta-commons/jelly/jelly-tags/email


On Tue, 19 Oct 2004 09:47:49 +0100, David Wynter <da...@stpenable.com>
wrote:
> Hi,
>
> I checked CVS and it seems that the email tablib was reomved abotu 20
months
> ago. But then I found this patch file referring to the tagloib
> http://jira.codehaus.org/secure/attachment/12650/mpannouncement-9.patch
>
> So the alternatice seems to be that you use the define tag (although not
too
> familiar with it)  to define the commons SimpleEmail class and set up the
> values from there. But unfortunately it seems that not all required
> attribute values can be set as it is not a Bean, e.g. addTo() for adding
> recipients. Ideas on how to approach this, point me to soem exmaples if
> possible, I
>
> David Wynter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


--
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [Jelly] Email tags not there, so can you use Commons email

Posted by Dion Gillard <di...@gmail.com>.
Huh?

The email taglib is still there...

look in jakarta-commons/jelly/jelly-tags/email


On Tue, 19 Oct 2004 09:47:49 +0100, David Wynter <da...@stpenable.com> wrote:
> Hi,
> 
> I checked CVS and it seems that the email tablib was reomved abotu 20 months
> ago. But then I found this patch file referring to the tagloib
> http://jira.codehaus.org/secure/attachment/12650/mpannouncement-9.patch
> 
> So the alternatice seems to be that you use the define tag (although not too
> familiar with it)  to define the commons SimpleEmail class and set up the
> values from there. But unfortunately it seems that not all required
> attribute values can be set as it is not a Bean, e.g. addTo() for adding
> recipients. Ideas on how to approach this, point me to soem exmaples if
> possible, I
> 
> David Wynter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 


-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [Jelly] Email tags not there, so can you use Commons email

Posted by Eric Pugh <ep...@upstate.com>.
David,

Not quite sure about this.  the maven-announcment-plugin was just updated to
send emails, however, it is using it's own static sendMail.

For the record, with Corey Scott's recent patchs for commons-email, it looks
like develpment may start up again, so if there are changes you need, don't
be shy with sending in patchs!  Now that commons-configuration has reached
1.0, it may be time for me to pick another sandbox component to shepherd to
1.0!

Eric



> -----Original Message-----
> From: David Wynter [mailto:david@roamware.co.uk]
> Sent: Tuesday, October 19, 2004 10:03 AM
> To: Jakarta Commons Users List
> Subject: RE: [Jelly] Email tags not there, so can you use Commons email
>
>
> To somewhat answer my own question, it seems that SimpleMail class has a
> setTo(Collection aList) in addition to the addTo(String aList) method,
> thereby satisfying the need to be a Bean. This complicates things a little
> further in that you need to create a Collection class and add the
> individual
> recipient addresses to that before then passing that as a argument to the
> setTo setter.
>
> But I am still somewhat confused how that recent patch can be referring to
> the email tag when it was removed 20 months ago.
>
> For me, the end user of this would find the email tag easier to understand
> than any define tag + setters.
>
> David
>
> -----Original Message-----
> From: David Wynter [mailto:david@stpenable.com]
> Sent: 19 October 2004 09:48
> To: Commons-User
> Subject: [Jelly] Email tags not there, so can you use Commons email
>
>
> Hi,
>
> I checked CVS and it seems that the email tablib was reomved
> abotu 20 months
> ago. But then I found this patch file referring to the tagloib
> http://jira.codehaus.org/secure/attachment/12650/mpannouncement-9.patch
>
>
> So the alternatice seems to be that you use the define tag
> (although not too
> familiar with it)  to define the commons SimpleEmail class and set up the
> values from there. But unfortunately it seems that not all required
> attribute values can be set as it is not a Bean, e.g. addTo() for adding
> recipients. Ideas on how to approach this, point me to soem exmaples if
> possible, I
>
> David Wynter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [Jelly] Email tags not there, so can you use Commons email

Posted by David Wynter <da...@roamware.co.uk>.
To somewhat answer my own question, it seems that SimpleMail class has a
setTo(Collection aList) in addition to the addTo(String aList) method,
thereby satisfying the need to be a Bean. This complicates things a little
further in that you need to create a Collection class and add the individual
recipient addresses to that before then passing that as a argument to the
setTo setter.

But I am still somewhat confused how that recent patch can be referring to
the email tag when it was removed 20 months ago.

For me, the end user of this would find the email tag easier to understand
than any define tag + setters.

David

-----Original Message-----
From: David Wynter [mailto:david@stpenable.com]
Sent: 19 October 2004 09:48
To: Commons-User
Subject: [Jelly] Email tags not there, so can you use Commons email


Hi,

I checked CVS and it seems that the email tablib was reomved abotu 20 months
ago. But then I found this patch file referring to the tagloib
http://jira.codehaus.org/secure/attachment/12650/mpannouncement-9.patch


So the alternatice seems to be that you use the define tag (although not too
familiar with it)  to define the commons SimpleEmail class and set up the
values from there. But unfortunately it seems that not all required
attribute values can be set as it is not a Bean, e.g. addTo() for adding
recipients. Ideas on how to approach this, point me to soem exmaples if
possible, I

David Wynter


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org