How to set email notification using struts.Plz give the
example code?

Answer Posted / vijay satlawar

There is no seperate mechanism in struts to send mail.

To send mails you need to use mail API by downloadimg mail.jar.

This needs SMTP port to be enabled in the system which needs
to send mail alerts.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we display validation errors on jsp page?

529


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

496


What does modeldriven interceptor?

582


What is actionmapping?

591


What's the purpose of execute method of action class?

524






What’s the utilization of struts.xml configuration file?

529


Which interceptor is responsible for file upload support?

570


What are the loop holes of struts?

557


How do I install struts?

558


What is the use of namespace in action mapping in Struts2?

570


What are the two different types of validations that the validator framework supports?

519


What are the important methods of actionform?

581


Explain the difference between dispatchaction and lookupdispatchaction in struts?

2030


Give the details of xml files used in validator framework?

578


What does it cost to replace struts?

493