[opencms-dev] Problem with scriptlets
Brian Sweeting
sweeting at infowest.com
Wed Jul 9 18:45:03 CEST 2003
Try this...
-----
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<jsp:useBean id="cms" class="com.opencms.flex.jsp.CmsJspActionElement" />
<%
private String Punkt() {
com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
String title = cms.property("Title");
return title;
}
%>
-----
Alexander Langer wrote:
>Hi!
>
>I'm still new to JSP and got a problem. My JSP looks something like
>this:
>
>-----
><%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
><jsp:useBean id="cms" class="com.opencms.flex.jsp.CmsJspActionElement" />
>
>private String Punkt() {
> com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
> String title = cms.property("Title");
>
> return title;
>}
>-----
>
>It gets include by a template to do some stuff. Problem is, I get this
>error:
>
>-----
>Generated servlet error:
> [javac] Since fork is true, ignoring compiler setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler setting.
> [javac] /opt/tomcat/work/Standalone/localhost/opencms/WEB-INF/jsp/online/system/modules/org.leaderspoint.site/jsptemplates/test_jsp_jsp.java:72: cannot resolve symbol
> [javac] symbol : class CmsJspActionElement
> [javac] location: class org.apache.jsp.test_jsp_jsp
> [javac] com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
> [javac]
>-----
>
>I just used the code from the documentation, so didn't expect any
>problems here.
>
>al
>
>
More information about the opencms-dev
mailing list