Pregunta

I've seen imports of type <%@ page import=... but <%!import com.... also works for me.

¿Fue útil?

Solución

The documentation shows the first form:

<%@ page import="java.awt.*" %>

However, as stated there and in other questions on the subject you should probably be using a taglib for this

Otros consejos

You can also use the class without specifying:

   <%@ page import="java.awt.*" %>. 

e.g,

  <g:each in=${com.test.User.list()} var="test">
  </g:each>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top