<java:import> | Standard JET2 Java Tags
--- | ---

import

Replace the enclosed content with the equivalent unqualified Java name (if possible), and ensure an appropriate Java import statement is generated.

This tag must be preceded by a 'importsLocation' tag.

Tag Summary
required | <java:import> content consumed by tag evaluation </java:import>
full tag | <java:import> content consumed by tag evaluation </java:import>

Example
| <%-- generates List and in import java.util.List import if another List is not imported --%> package org.example; <java:importsLocation package="org.example"/> ... later in the template ... <java:import>java.util.List</java:import> myList;