I looked at the configure() method, and I think the exception
is thrown by the use of the getAttribute() method.
If the attribute "smtphost" is not set in the configuration of the
action, the getAttribute("smtphost") call will throw an exception!
So, the correct call would be:
getAttribute("smtphost", default-value).
I will change the action according to the pattern above.
If you could please test, if this works for you?
Carsten
> -----Ursprüngliche Nachricht-----
> Von: Klaus Bertram [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 21. September 2001 10:46
> An: [EMAIL PROTECTED]
> Betreff: RE: DIFF [C2.0] SendmailAction
>
>
> Hi Carsten,
> every time i try to set the default value for smtphost it throws an
> exception
> also when the configuration parameter it not set.
>
> So it seems better to put out the configuration parameter
> it work's fine
>
> at the moment my time is a litle bit busy,
> but i want rewrite the sendmail action with features to send multipart
> mail's
>
> Klaus
>
>
> nbis - Röttgerweg 10 - 51371 Leverkusen
> phone: +49-214-206494-0
> fax: +49-214-206494-44
> email: [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 21, 2001 10:18 AM
> > To: [EMAIL PROTECTED]
> > Subject: AW: DIFF [C2.0] SendmailAction
> >
> >
> > Hi Klaus,
> >
> > what's the use of this patch? As far as I can tell it simply
> > comments the configure() method out, correct? Why this?
> >
> > Carsten
> >
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Klaus Bertram [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Donnerstag, 20. September 2001 18:09
> > > An: Cocoon dev
> > > Betreff: DIFF [C2.0] SendmailAction
> > >
> > >
> > > Hi all,
> > >
> > > here is an aditional diff for the SendmailAction aginst Brunch
> > >
> > > Klaus
> > >
> > > nbis - Röttgerweg 10 - 51371 Leverkusen
> > > phone: +49-214-206494-0
> > > fax: +49-214-206494-44
> > > email: [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]