我已經在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是如下:
<%@ 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如下:
包COM .mycompany.test;
public class HelloWorld {
public String getString(){
return "Say Hello to my little friend !!";
}
}
想不通什麼可能是錯在這裏
嘖嘖,感謝...它的工作! – 2013-03-08 11:35:35