Hey guys,
I've very new to JSP, Java, and Netbeans and I'm having an issue... So I've got an ArrayList of User objects and I'm trying to iterate over the list in a JSP page to display the info. I've included the JSTL 1.1 jstl and standard libraries. Here is my code for the JSP:
<% include business.User %>
...html stuff...
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:forEach items ="${phonelist}" var="item">
<tr>
<td><font face="verdana" size="2"><% item.getFirstName; %></font></td>
<td><font face="verdana" size="2"><% item.getLastName; %></font></td>
<td><font face="verdana" size="2"><% item.getPhoneMobile; %></font></td>
<td><font face="verdana" size="2"><% item.getPhoneOffice; %></font></td>
<td><font face="verdana" size="2"><% item.getPhoneHome; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressStreet; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressCity; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressState; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressCountry; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressState; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressCountry; %></font></td>
<td><font face="verdana" size="2"><% item.getAddressZip; %></font></td>
<td><font face="verdana" size="2"><% item.getCompany; %></font></td>
<td><font face="verdana" size="2"><% item.getEmail; %></font></td>
</c:forEach>
...and here is the error I'm getting when I try to run the page:
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
controllers.display_phonebook.processRequest(display_phonebook.java:41)
controllers.display_phonebook.doGet(display_phonebook.java:56)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:621)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$000(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
...and it goes further with more lines of similar stuff...
Any suggestions would be very helpful!!
Thanks in advance,
- Jeff