[opencms-dev] writeProperty fail

Ernesto De Santis ernesto.desantis at colaborativa.net
Fri Dec 19 17:12:01 CET 2003


Olli, thanks, and sorry for my stupid ask.

Again, i don´t writeProperty´s.

If aks for accessWrite, return false.
if before login me, the CmsDbAccess Exception is throw.

I use this in my jsp:

String userName = cmso.loginWebUser("Admin", "admin");

Exception:

Root cause:
org.apache.jasper.JasperException: com.opencms.core.CmsException: [com.opencms.file.mySql.CmsDbAccess]Admin
......

And if use loginUser, (before loginWebUser)

String userName = cmso.loginUser("Admin", "admin");


Exception:

Root cause:
org.apache.jasper.JasperException: com.opencms.core.CmsException: [com.opencms.file.mySql.CmsDbAccess] /default/vfs/system/modules/.../pages/si.jsp
 
Any idea?

Thanks for all.
Ernesto.


  ----- Original Message ----- 
  From: Olli Aro 
  To: opencms-dev at opencms.org 
  Sent: Monday, December 15, 2003 6:01 PM
  Subject: RE: [opencms-dev] writeProperty fail


  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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031219/5aff3ba2/attachment.htm>


More information about the opencms-dev mailing list