hi,
i have to get the gmail contact list using jsp code. For that purpose i have to use the Google data Api
By using like that code i got the errors as
org.apache.jasp er.JasperExcept ion: Unable to compile class for JSP
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
ContactListImpo rter cannot be resolved to a type
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
ContactListImpo rterFactory cannot be resolved
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
List cannot be resolved to a type
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
Contact cannot be resolved to a type
org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(JspServletWr apper.java:510)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 375)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:314)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :264)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:802)
We think these are errors comes due to the didn't have the proper jar files.In that i didn't place any jar files in lib folder.
If these error comes due to jar files please tell that what jar files i have to to place in the lib folder.
otherwise please tell that whats the problem in my code.
i have to get the gmail contact list using jsp code. For that purpose i have to use the Google data Api
Code:
<%@ page import="com.xdatasystem.contactsimporter.*" %>
<%
// automatically guess the correct implementaion based on the email address
ContactListImporter importer=ContactListImporterFactory.guess("mymail@gmail.com", "mypassword");
List<Contact> contacts=importer.getContactList();
for(Contact c : contacts) {
out.println("name: "+c.getName()+", email: "+c.getEmail());
}
%>
By using like that code i got the errors as
org.apache.jasp er.JasperExcept ion: Unable to compile class for JSP
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
ContactListImpo rter cannot be resolved to a type
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
ContactListImpo rterFactory cannot be resolved
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
List cannot be resolved to a type
An error occurred at line: 2 in the jsp file: /importcontact.j sp
Generated servlet error:
Contact cannot be resolved to a type
org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(JspServletWr apper.java:510)
org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 375)
org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:314)
org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :264)
javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:802)
We think these are errors comes due to the didn't have the proper jar files.In that i didn't place any jar files in lib folder.
If these error comes due to jar files please tell that what jar files i have to to place in the lib folder.
otherwise please tell that whats the problem in my code.
Comment