Ramya Ms wrote:I want to read the contents of a log file present on the server, and trigger email along with the log file attached using JSP.
No, you don't. JSP is a technology for creating HTML views. Reading a log file and sending email is not something that JSP is suitable for. If you need to do this within the context of a web application, it should be done in Java classes, not JSP.