[opencms-dev] google sitemap file (was Re: creating a file)

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Fri Aug 29 17:00:58 CEST 2008


Thanks. I solved it meanwhile. Had to include this line:

<%@ page import="org.opencms.lock.CmsLock" %>


On Fri, Aug 29, 2008 at 03:28:14PM +0200, Christoph P. Kukulies wrote:
> Sorry, again, it doesn't work with your suggestion.
> Here is the code:
> 
> <%@ page session="false" %>
> <%@ page
> import="java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
> java.text.SimpleDateFormat,org.opencms.main.*" %>
> <%@ page import="org.opencms.lock.CmsLockType" %>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
> 
....

> On Fri, Aug 29, 2008 at 12:49:30PM +0200, Dirk Hinderks wrote:
> > On Fri, Aug 29, 2008 at 09:32:18AM +0200, Christoph P. Kukulies wrote:
> > > Thanks. I just thought that the package imports in the header of the
> > > jsp,
> > > 
> > > [...]
> > > <%@ page
> > > import="java.util.*,org.opencms.jsp.*,org.opencms.file.*,java.text.DateFormat,
> > > java.text.SimpleDateFormat,org.opencms.main.*" %>
> > > [...]
> > > 
> > > were for just this purpose.
> > 
> > You're mostly right.  But you import types/classes, not packages.  If
> > I've understood you right, you've used something equivalent to:
> > 
> >   <%@ page import="org.opencms.lock" %>
> > 
> > In order to use »org.opencms.lock.CmsLockType.TEMPORARY« without
> > qualification as »CmsLockType.TEMPORARY«, add the following to your JSP
> > (note that the right class name is »CmsLockType« instead of »CmsLock«):
> > 
> >   <%@ page import="org.opencms.lock.CmsLockType" %>
> > 
> > The servlet container (i.e. Tomcat) translates this to the import
> > declaration »import org.opencms.lock.CmsLockType;« before compilation.
> > 
> > -- 
> > Dirk Hinderks, Cologne, Germany
> > 
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list