JSP - How to import classes

To import one class to your jsp file :

<%@
    page import="java.util.List;"
%>
hello

To import more than one using a short sintaxe:

<%@
    page import="java.util.List,java.util.ArrayList;"
%>
hello

To import more than one using in a more readable way:

<%@
    page import="java.util.List"
%>
<%@
    page import="java.util.ArrayList"
%>
hello

Comments

Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted

Oracle - ORA-29282: invalid file ID, ORA-06512: at "SYS.UTL_FILE"