[opencms-dev] Ver6: Article Management Module is out!!!

Jose Felix Hernandez josefelixh at herbert.sytes.net
Sun Feb 6 17:58:06 CET 2005


Thanks Robert,

Do you think it is worthy to update my jdk?

José F. Hernández

----- Original Message ----- 
From: "Robert Petermeier" <robert2.0 at gmx.de>
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Sent: Sunday, February 06, 2005 4:04 PM
Subject: Re: [opencms-dev] Ver6: Article Management Module is out!!!


> Jose Felix Hernandez schrieb:
>
>> I am getting a jsp compilation error for the navigation.jsp in the line
>>
>> boolean openInNewWindow = 
>> Boolean.parseBoolean(cms.getCmsObject().readPropertyObject(resourceName, 
>> "link_blank", false).getValue());
>>
>> This is the compilation error.
>> Boolean.parseBoolean(cms.getCmsObject().readPropertyObject(resourceName, 
>> "link_blank", false).getValue());
>>                                                 ^
>> 1 error
>>
>> The class java.lang.Boolean haven´t got such a method (parseBoolean).
>
> It has, but only in JDK 1.5, which Ulrich apparently uses. Replace his 
> line with these lines to make it work with older JDKs:
>
> String s =
>     cms.getCmsObject().readPropertyObject(
>     resourceName, "link_blank", false).getValue();
> boolean openInNewWindow = (s != null && s.equalsIgnoreCase("true"));
>
>
> Regards,
> Robert
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev 




More information about the opencms-dev mailing list