This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes javamail enquiry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "javamail enquiry" Watch "javamail enquiry" New topic
Author

javamail enquiry

albert sie
Ranch Hand

Joined: Jan 15, 2006
Posts: 108
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 ]

JAVA the only can called technology
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61448
    
  67

Basic Java. You can't have two variables with the same name.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javamail enquiry