[opencms-dev] 6b2: Using JSTL's XML tags to process Structured Content

Daniel Rhoden drhoden at iiwinc.com
Tue Apr 5 18:01:51 CEST 2005


Well I wasn't able to figure out why JSTL's xml tags were flipping out, 
but I was able to solve what I wanted to accomplish.

By using the taglib found at 
http://jakarta.apache.org/taglibs/doc/xtags-doc/intro.html I am able to 
use xpath to process the file in just the way I was hoping.  Here here 
is another helpful link for using xtags to process nodes of any XML file 
within OpenCMS

http://jakarta.apache.org/taglibs/doc/xtags-doc/index.html

--Daniel Rhoden

Daniel Rhoden wrote:

> I am using structured content to organize configuration settings and 
> not as an alternative to XML pages. I am wanting to use JSTL's xml tag 
> lib to access the nodes of interest via XPath statements.  I am able 
> to use every other JSTL feature (including sql) without any problems, 
> except for the XML tags.
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
>
> Even with the simplest of pages, I get the following exception:
>
> java.lang.VerifyError: Cannot inherit from final class
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>     at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>     at 
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634) 
>
>     at 
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860) 
>
>     at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) 
>
>     at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) 
>
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>     at 
> org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(ExprSupport.java:63) 
>
>
> Is there anything about OpenCMS that would prevent the XML tags from 
> working?
>
> --Daniel Rhoden
>
>
>
> _______________________________________________
> 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