[opencms-dev] need that code be fixed - 7.0.5

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Thu Jul 23 18:25:15 CEST 2009


I had a piece of code that generates a sitemap (sitemap.jsp) and it used
to work under 6.2.3.

I tried it under 7.0.5 and wnated to run it under 7.5.0 also and it
misbehaves:

An error occurred at line: 77 in the jsp file:
/WEB-INF/jsp/offline/sites/mysite/sitemap.jsp
CmsLock.TEMPORARY cannot be resolved
74:  String s_filecontent="<?xml version=\"1.0\" encoding=\"UTF-8\"
?>\n<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\">";
75:
cmso.getRequestContext().setCurrentProject(cmso.readProject("Offline"));
76: if (cmso.existsResource(filename)) {
77:        cmso.lockResource(filename,CmsLock.TEMPORARY);
78:         cmso.deleteResource(filename,
79: CmsResource.DELETE_PRESERVE_SIBLINGS);
80:         if (cmso.existsResource(filename)) {


Any clues how to fix this for 7.x?


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de




More information about the opencms-dev mailing list