aspose file tools*
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
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: 60059
    
  65

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
 
Similar Threads
Problem with my jsp compilation/Java mail
Sending HTML format mail thru JSP
mail sending in jsp
problem with my jsp page
Java Mail - How to send to Multiple recipients