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

Robert Petermeier robert2.0 at gmx.de
Sun Feb 6 17:04:44 CET 2005


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



More information about the opencms-dev mailing list