Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javamail enquiry

 
albert sie
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone expert here help me to see wat problem of my program... i really no idea to solve it out liao



error:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
Duplicate local variable message

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method setFrom(InternetAddress) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
Duplicate local variable to

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method addRecipient(Message.RecipientType, String) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method setSubject(String) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method setText(String) is undefined for the type String

An error occurred at line: 2 in the jsp file: /simplemail.jsp
Generated servlet error:
The method send(Message) in the type Transport is not applicable for the arguments (String)


[ March 03, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basic Java. You can't have two variables with the same name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic