在处理发送邮件的jsp文件中已经引入了
<%@ page import= "javax.activation.* "%>
<%@ page import= "java.util.*,javax.mail.* "%>
<%@ page import= "javax.mail.internet.* "%>
这些是javamail和jaf的类文件包,而且已经把javamail和jaf的mail.jar和activation.jar加到了classpath里为什么编译文件时还会报错:
不认识,无法解析Session ,MimeMessage,InternetAddress等等这些类呢????
错误提示是:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
Properties cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
Properties cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
Session cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
Session cannot be resolved
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
MimeMessage cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
MimeMessage cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
InternetAddress cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
Message.RecipientType.TO cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error:
Date cannot be resolved to a type
An error occurred at line: 12 in the jsp file: /sendmail.jsp
Generated servlet error: