<%@ page import =\"java.util.*\" %>
<%@ page import =\"book.*\" %>
ArrayList movies = (ArrayList) request.getAttribute(\"movieinfo\");
if(movies!=
Look at your movie
class definition . It is packaged inside movie
package.
package movie; // full class name will be movie.movie
import java.util.Date;
public class movie { ......
}
You should import the movie
class as :
<%@ page import ="movie.movie" %>
Even then writing Java code inside JSP is highly discouraged . Read How to avoid Java Code in JSP-Files?.
For your purpose you can use JSTL's <c:forEach>
loop.