cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ehms, Jürgen" <...@msc-ge.com>
Subject AW: [Problem]sendmail - reference to Session is ambiguous
Date Thu, 18 Apr 2002 11:49:50 GMT
Here is the Bugfix to Sendmail.xsl

- long Path to javax.mail.Session on account of ambiguous to
org.apache.cocoon.environment.Session
- changes on Template "get-nested-string" to prevent ERROR on
String.getValue()  with missing Argument;
- added Tags <sendmail:bcc>,<sendmail:cc>,<sendmail:charset> 

usage with

<xmlns:sendmail="http://apache.org/cocoon/sendmail/1.5> 
in Head
...
<sendmail:send-mail>
  <sendmail:smtphost>Mailserver</sendmail:smtphost>  <!-- default is
127.0.0.1 -->
  <sendmail:from>ADRFROM@xxx.com</sendmail:from> <!-- required -->
  <sendmail:to>ADRTO@xxx.com</sendmail:to> <!-- required -->
  <sendmail:cc>ADRCC@xxx.com</sendmail:cc>
  <sendmail:bcc>ADRBCC@xxx.com</sendmail:bcc>
   <sendmail:charset>ADRFROM</sendmail:charset>
  <sendmail:subject>TXTSubjekt</sendmail:subject>
  <sendmail:body>TXTMSG</sendmail:body>
  <sendmail:charset>ISO-8859-1</sendmail:charset>
</sendmail:send-mail>

I testet with  jdk1.3.1 tomcat-4.0.4-dev2  cocoon-2.0.3-dev

I hope it will help

greetings

Juergen Ehms

-----Ursprüngliche Nachricht-----
Von: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
Gesendet: Donnerstag, 11. April 2002 21:22
An: cocoon-users@xml.apache.org
Betreff: RE: [Problem]sendmail - reference to Session is ambiguous


> From: Ehms, Jьrgen [mailto:jge@msc-ge.com]
> 
> Hallo
> 
> I also like to use sendmail in my XSP but if I put only in my Head
> 
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
> xmlns:xsp-session="http://apache.org/xsp/session/2.0"
> xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0">
> 
> I got always the error:
> 
> reference to Session is ambiguous, both class javax.mail.Session in
package
> javax.mail and interface org.apache.cocoon.environment.Session in
package
> org.apache.cocoon.environment
> 
> XSP-Gererator automaticly generates:
> 
> /**
>  * Generate XML data.
>  */
>       public void generate() throws SAXException, IOException,
> ProcessingException {
> 
> 
>         Session session = request.getSession(true);
> 
> and not
> 
> 	org.apache.cocoon.environment.Session session =
> request.getSession(true);
> 
> 
> 
> How can I resolve this Problem in this Packages.

This seems like a bug in the sendmail logicsheet. Change sendmail
logicsheet so it does not imports JavaMail session, but uses fully
qualified name.

PS You could send a patch when/if you fix

Vadim 

> 
> regards
> 
> Juergen
> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>



Mime
View raw message