Email « JSTL « JSP-Servlet Q&A

1. Problem accesing email property with help of Expression Language/JSTL

In my Servlet:

request.getSession().setAttribute("person", person);

RequestDispatcher rd = request.getRequestDispatcher("/JSPAddress");
rd.forward(request, response);
My Bean Class:
private String eMail;

public Person(String eMail) {

public String getEmail() {
    return eMail;
public void setEmail(String Email) {

2. Email send problem

3. [SOLVED] Email send problem

Java Code: package org.eclipse.http.SamSite; import; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.*; import javax.servlet.http.*; import*; import javax.mail.*; import javax.mail.Authenticator; import javax.mail.PasswordAuthentication; import javax.mail.internet.*; // important import javax.mail.event.*; // important import*; import java.util.*; /** * Servlet implementation class for Servlet: SendEmail * */ public class SendEmail extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { static final long serialVersionUID = 1L; private ...

4. Check email by background thread

You could make it a servlet, but lets back up a notch. Most things that alert on email run on the client. Could be a laptop, desktop, blackberry, iPhone, etc. Its the client that can easily display things to the user, ring bells, make sounds, etc. Its not clear what the "web application" would do. Email is kept on a server, ...

5. new to JSP tech (associates to email)

6. how to send an email

7. Need help sending an email

8. sending email

9. Sending email in jsp with authentication