CQ5의 CRXDE에서 샘플 번들을 만들었습니다. the tutorial에 주어진대로 과정은 낱말에 지켜졌다.CQ 번들 예외가 발생합니다. 형식 만 가져올 수 있습니다.
하지만 페이지를 실행하면, 그냥 예외
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.mycompany.test.HelloWorld resolves to a package
는 JSP를 throw은 다음과 같습니다 :
는<%@ page import="com.mycompany.test.HelloWorld"%><%
%><%@ include file="/libs/foundation/global.jsp"%><%
%><% HelloWorld hello = new HelloWorld();%><%
%>
<html>
<body>
<b><%= hello.getString() %></b><br>
</body>
</html>
HelloWorld.java는 다음과 같다 :
패키지 닷컴 .mycompany.test;
public class HelloWorld {
public String getString(){
return "Say Hello to my little friend !!";
}
}
여기
Gee 고마워 ... 잘됐다 !! –