I'm newcomer too,I tested all the examples of the book,all work well!that's great!thanks the author!but only just this tekmart 19.8.6 part(catalog.jsp) cannot work now!and throw "org.apache.jasper.JasperException: /catalog.jsp (line: 6, column: 2) The value for the useBean class attribute java.util.Iterator is invalid."when I try to changed "catalog.jsp
<HTML>
<%@ page import="jess.*" %>
<jsp:useBean id="queryResult" class="java.util.Iterator" scope="request"/>
"to that :
"catalog.jsp:
<HTML>
<%@ page import="jess.*,java.util.Iterator" %>
<% Iterator queryResult =(Iterator)request.getAttribute("queryResult"); %>"
it works!and do the same to purchase.jsp/recommend.jsp,the jsp's and servlets can work together,but there is also problem :not any recommend,what's wrong? I do it in command line and asert facts,it works well!maybe sth wrong i did it,get in troblem ?would you like to tell where is the problem? thanks a lot!
(win7+javac 1.8.0_91+tomcat 9.0)
|