<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use this code for creating file. File is
successfully created but I have have problem when I want to edit it in WYSIWYG
editor:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> CmsJspActionElement cmsJSP = new
CmsJspActionElement(pageContext, request, response);<BR> CmsObject cms =
cmsJSP.getCmsObject();<BR> <BR> Hashtable props = new
Hashtable();<BR> props.put("Title","Uputstvo");<BR> props.put("Description","Ovo
je opis stranice");<BR> props.put("Keywords","kljucna1, kljucna2,
klucna3");<BR> props.put("NavText","Uputstvo za
sajt");<BR> <BR> try {<BR> <BR> CmsResource newfile =
cms.createResource("/Home/","uputstvo.html","page",props,contents);<BR> CmsXmlControlFile
controlFile = new CmsXmlControlFile(cms,
(CmsFile)newfile);<BR> controlFile.setMasterTemplate("/system/modules/org.opencms.default/templates/empty");<BR> controlFile.write();<BR> <BR> }
catch(CmsException e) {<BR> <BR> out.println("Greska
!!!");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I try to edit this page in WYSIWYG editor I
got blank page. But, page is successfully displayed in browser with its content.
Then when I switched form WYSIWYG editor I saw exception something like
this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>CmsException ID:0</FONT></DIV>
<DIV><FONT face=Arial size=2>String index out of range: -6</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anyone help me?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using OpenCMS 5, Oracle 8.1.7 (Generic),
Tomcat 4.1.24LE on W2K.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards, Ivan.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>