I have jsp page that contain a form, What i want is :
when user click the submit button: an email notification will be send to (any email)
what is the statment code to do the(send a notification email ) in jsp ??
You need to download a java mail library and place it in your classpath. A good one from sun at http://java.sun.com/products/javamail/ and here how to write code to deal with it http://www.vipan.com/htdocs/javamail.html
Working with files is a moderately common task in Java. For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.
However, when your application has vi…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects.
Interface Comparable is used to allow objects of a cl…
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java.