Dear Cybermaster,
Thanks for the help.
I had indeed not done that setup. But it doesn't solve my COMPILE-time
error.
It doesn't even get so far as to check any of the code you suggested (I did
put it in). I've tried it under both Orion release 1.4.7. and under
1.5.1...
I'm especially puzzled by the reference to the "IFINROLE"-tag. Which is
not in my JSP file, but of course is another tag in the same utiltags
library. Is this maybe a cut-and-past problem in the Utltags lib?
Any other suggestions ?
Harrie
-----Original Message-----
From: cybermaster [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, 30 May 2001 18:46
To: Orion-Interest
Subject: RE: Util taglibrary bug? util:sendMail
util:sendMail works fine for me. Did you set your mail.smtp.host property?
e.g.
<%@ taglib uri="utiltags" prefix="util" %>
<%@ page language="java" import="java.util.*, javax.mail.*,
javax.mail.internet.*" %>
<%
String smtpHost = "x.x.x.x" ; // your
servers IP
String date = new Date().toLocaleString();
%>
<!-- Send email(s) -->
<%
Properties properties = System.getProperties();
properties.put("mail.smtp.host", smtpHost);
Session mailSession = Session.getDefaultInstance(properties, null);
%>
<!--
REM: above should _not_ use getDefaultInstance, only quick fix; better put
instance into JNDI,
or create new tag that takes instance directly
-->
<util:sendMail from="vipeWebApplication" to=" [EMAIL PROTECTED] "
subject="Enquete">
date: <%= date %>
user: <%= request.getRemoteUser() %>
</util:sendMail>
Cheers
--peter
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Harrie van
Barneveld
Sent: Wednesday, May 30, 2001 4:00 AM
To: Orion-Interest
Subject: Util taglibrary bug? util:sendMail
I'm trying to use sendMail-tag from the Orion Utiltags library and I am
having no success, anyone who has solved this problem?
If I use the "subject"-attribute, like this:
<util:sendMail to="[EMAIL PROTECTED]" subject="Enquete">
I get the compile-time error:
Error parsing JSP page /vipe/main.jsp line 280
subject is not a valid attribute for tag util:sendMail
If I leave the "subject" out, like this:
<util:sendMail to="[EMAIL PROTECTED]">
I get the compile-time error:
Error parsing JSP page /vipe/main.jsp line 280
Property to not found in bean/tag
com.evermind.taglib.util.IfInRoleTag
which seems way out-of-line.....
Any help is appreciated.
Harrie