문제

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

도움이 되었습니까?

해결책

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

다른 팁

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top