Use the following import statement to import java.util.List
:
<%@ page import="java.util.List" %>
BTW, to import more than one class, use the following format:
<%@ page import="package1.myClass1,package2.myClass2,....,packageN.myClassN" %>
More Related Contents:
- Sending email from a form
- How to redirect system.out.print statements to web page in JSP
- Servlet returns “HTTP Status 404 The requested resource (/servlet) is not available”
- How to retrieve and display images from a database in a JSP page?
- How to solve the “failed to lazily initialize a collection of role” Hibernate exception
- Difference between getAttribute() and getParameter()
- How to iterate an ArrayList inside a HashMap using JSTL?
- EL access a map value by Integer key
- How to avoid using scriptlets in my JSP page?
- Simple calculator with JSP/Servlet and Ajax
- How to detect the timezone of a client?
- Converting a Java ArrayList of strings to a JavaScript array
- How do I get whole and fractional parts from double in JSP/Java?
- _jspService is exceeding the 65535 bytes limit
- Side effect–what’s this?
- How to change Java version used by TOMCAT?
- How to upload files on server folder using jsp [duplicate]
- Load properties file in Servlet/JSP [duplicate]
- EL expressions won’t executed in Tomcat 5.5, but working in tomcat 6.0.20
- Is it a good idea to put jdbc connection code in servlet class?
- Get anchor from URI
- How to pass parameter to jsp:include via c:set? What are the scopes of the variables in JSP?
- Should I retrieve database record in Struts2 view layer?
- JasperReports: How to call the report in jsp page
- JSP page without HTML code for exporting data to Excel Sheet
- How do I make a Java ResultSet available in my jsp? [duplicate]
- What is the difference between response.sendRedirect() and request.getRequestDispatcher().forward(request,response) [duplicate]
- Upload multiple files in Struts2 with Dropzone.js
- Avoid duplicate submission of Struts 2 jsp page
- Servlet redirect to same page with error message