You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2003/09/25 20:51:10 UTC
DO NOT REPLY [Bug 23419] New: -
Allow setting username & password via specific tags.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23419>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23419
Allow setting username & password via specific tags.
Summary: Allow setting username & password via specific tags.
Product: Taglibs
Version: unspecified
Platform: All
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Mailer Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: ochkarik@inbox.ru
It is common practice to store variable information (like username and password
for logging into SMTP account) in web application init-params or context params,
in order to not recompile JSP pages when such information changes. It would be
very nice to have an ability to provide username & password dynamically to
Mailer tags, for example, in the following way:
<mt:mail ...>
<mt:user><c:out value="${initParam.SMTPUser}"/></mt:user>
<mt:password><c:out .../></mt:password>
...
</mt:mail>
This seems to be the only suitable way, because Mailer taglib does not support
JSP EL to pass parameters to tags dynamically.
JavaMail 1.2 API provides a way to set default username via mail.smtp.user
property (if we pre-configure mail session instance and resolve it via JNDI),
but no property exists for setting default password.