[opencms-dev] Problem with scriptlets

Alexander Langer al at al-arenal.de
Wed Jul 9 21:10:02 CEST 2003


Hi Felix!

Thank you, that was my missing link.
Obviously

<jsp:useBean id="cms" class="com.opencms.flex.jsp.CmsJspActionElement">
<% cms.init(pageContext, request, response); %>
</jsp:useBean>

in combination with code like

com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);

doesn't work, although the documentation claims this to be the right
way. Instead

<%@ page import="com.opencms.flex.jsp.*" %>

and

com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement();

works. Surprisingly, in another jsp of mine the code

com.opencms.flex.jsp.CmsJspActionElement cms = new com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, response);

works without any additional tags or imports.

> Hi Alex,

> I have had the same problem. 
> For me starting the jsp with
> <%@ page import="com.opencms.flex.jsp.*" %>
> was the solution. It seems to be necessary to explicitly import this
> package. 

> Regards, Felix


> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev



al

-- 
Alexander Langer
homepage: http://www.al-arenal.de
mailto: langer at al-arenal.de





More information about the opencms-dev mailing list