Hi,
Im using the following code to send email from my application. Im using
JSF (tomahawk), Spring and hibernate in my application. I'm using spring email API classes to send email. This code works perfectly fine in the sense its parsing template and sending emails to the configured email id.
I have defined this class as a managed bean and i have a commanButton is UI which is bound to this sendEmail() method
The problem i have is when i try to invoke the function sendEmail() from my UI it is throwing a series of
applet alerts (some 10 of them) . The following are the alerts that i get
1. The applet is attempting to invoke the java/lang/System.getProperty() operation on java.home
2. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.providers
3. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.address.map etc....
For ever applet alert i had to click on 'allow' for it to proceed. But there is no problem in sending mail after that. One more interesting this is i DONT get this alert when i try to execute this
java class directly instead of calling the method from another class or from UI.
Can someone please let me know the reason for this applet alert and the way to suppress it?
Its really urgent .. please help
Thank you..