Is it possible to send a mail from a servlet? Explain?
Answers were Sorted based on User's Feedback
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 |
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 |
What are some disadvantages of storing session state in cookies?
Is Servlet Class Thread safe?????? How to make servlet Thread safe ???
How can the session in servlet can be destroyed?
How do you define a servlet?
How do u authorize and authenticate without <auth> of web.xml
Which are the different ways you can communicate between servlets?
What is http servlet in java?
Explain mvc pattern.
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!
Explain the differences between jsp and servlet.
What are cookies and how will you use them?
Can we define constructor in Servlet class?