[opencms-dev] writeProperty fail

Olli Aro olli_aro at yahoo.co.uk
Mon Dec 15 22:00:02 CET 2003


You seem to have an extra closing bracket. Try: -

cmso.writeProperty(resource, "acceptance", "2");

Regards,

Olli
  -----Original Message-----
  From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]On Behalf Of Ernesto De Santis
  Sent: 15 December 2003 18:52
  To: OpenCms List
  Subject: [opencms-dev] writeProperty fail


  Hello

  I can´t write a property.

  look simple, but not work.

  The resources, is a html page. And a property is defined for me.
"acceptance". cmso is a CmsObject.
  resource is a String variable, with de cms path of the resource.
  this code run in jsp page.
  I proof this code´s:

   - cmso.writeProperty(resource, "acceptance", "2"));

   [javac] ......\si_jsp_jsp.java:91: ';' expected
   [javac]  cmso.writeProperty(resource, "acceptance", "2"));
   [javac]                                                ^

   - cmso.writeProperty(resource, "title", "titulo de prueba"));

  [javac] ....\si_jsp_jsp.java:92: ';' expected
  [javac]         cmso.writeProperty(resource, "title", "titulo de
prueba"));
  [javac]                                                                ^


  In this same jsp, I read the property fine, without problems. I try lock
the resource for write property, but not work.


  Bye, Ernesto.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.550 / Virus Database: 342 - Release Date: 09/12/2003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031215/6b04795e/attachment.htm>


More information about the opencms-dev mailing list