[opencms-dev] CmsTemplateBean cannot be resolved to a type
Ricardo Sanchez
ricsanc1987 at gmail.com
Wed Sep 9 10:37:02 CEST 2015
Hello Paul-Inge:
First of all, thanks for your response.
I did everything you mentioned me, import templateone related modules and
directives related to the jsp and now I get the following error:
Unable to compile class for JSP:
An error occurred at line: [18] in the generated java file: [C: \ SAE \
Tomcat
7.0.63\work\Catalina\localhost\opencms\org\apache\jsp\WEB_002dINF\jsp\offline\system\modules\org_opencms_module_acucyl\elements\copyright_jsp.java]
Only a type can be imported. Resolves to a package
org.opencms.frontend.templateone.CmsTemplateBean
An error occurred at line 26 in the jsp file:
/WEB-INF/jsp/offline/system/modules/org.opencms.module.acucyl/elements/copyright.jsp
CmsTemplateBean can not be resolved to a type
2. 3:
24:
25: <%
26: CmsTemplateBean cms = new CmsTemplateBean (pageContext, request,
response);
27: cms.init (pageContext, request, response);
28: CmsMessages messages = cms.getMessages ("org / / opencms / module /
acucyl / workplace" request.getLocale () + "");
29:%>
The head of my JSP is as follows:
<%@ page pageEncoding="UTF-8" %><%@ taglib prefix="cms" uri="
http://www.opencms.org/taglib/cms" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.opencms.jsp.*" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<%@page buffer="none" session="true"
import="java.util.*,org.opencms.frontend.templateone.*" %>
<%@ page import="org.opencms.frontend.templateone.*" %>
<%@ page import="org.opencms.frontend.templateone.CmsTemplateBean" %>
<%@ page import="org.opencms.jsp.CmsJspXmlContentBean" %>
<%@ page import="org.opencms.jsp.CmsJspActionElement" %>
<%@ page import="org.opencms.i18n.*" %>
<%@ page import="org.opencms.file.CmsUser" %>
<%@ page import="org.opencms.file.CmsGroup" %>
<%@ page import="org.opencms.file.CmsObject" %>
What can I do?
Best regards and thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150909/4b13e0c6/attachment.htm>
More information about the opencms-dev
mailing list