Is it possible to send a mail from a servlet? Explain?

Answers were Sorted based on User's Feedback



Is it possible to send a mail from a servlet? Explain?..

Answer / niranjanravi

yes we can a mail through mailAPI

Is This Answer Correct ?    3 Yes 0 No

Is it possible to send a mail from a servlet? Explain?..

Answer / saikiran

yes possible by API.
Explanation:
If that are in different two Independent Systems
That is One of the Rule that reference of Object in one
system is not given to the another system JVM is not
allowes.
For that RMI standard come into existance We make Free
from Vendor Locking

Is This Answer Correct ?    2 Yes 0 No

Is it possible to send a mail from a servlet? Explain?..

Answer / shumaan

yes we can thorough API

Is This Answer Correct ?    0 Yes 0 No

Is it possible to send a mail from a servlet? Explain?..

Answer / bhushan

yes its possible to send mail from servlets.
using dopost()method we can compose mail by hard coding HTML inside the out.println()-- this is Hidden form field mechanism. & urlRewriting.
And using sendRedirect() we reach to destination servlet.where ew again use req.getParameter().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

What are some disadvantages of storing session state in cookies?

0 Answers  


Is Servlet Class Thread safe?????? How to make servlet Thread safe ???

4 Answers   Cognizant,


How can the session in servlet can be destroyed?

0 Answers  


How do you define a servlet?

0 Answers  


How do u authorize and authenticate without <auth> of web.xml

1 Answers   Bosch,






Which are the different ways you can communicate between servlets?

0 Answers  


What is http servlet in java?

0 Answers  


Explain mvc pattern.

0 Answers  


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

0 Answers  


Explain the differences between jsp and servlet.

0 Answers  


What are cookies and how will you use them?

3 Answers  


Can we define constructor in Servlet class?

10 Answers   Accenture, Yugma,


Categories