Skip to Content
author's profile photo
Former Member

Problem Using Taglibs with PortalApplication

i want to use JSTL Core Taglibs with my portal application.

Below are the portalapp.xml and my jsp


<?xml version="1.0" encoding="UTF-8"?>



<property name="SharingReference" value="jstl,standard"/>



<component name="Myjsp">


<property name="SecurityZone" value=""/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="jsp/test.jsp"/>



<property name="custom" value="taglib/c.tld"/>








<%@ taglib uri="prt:taglib:custom" prefix="c" %>

<c:out value="Hello World"/>

This should actually print Hello World but

I get an NullPointerException when i access jsp page do i need to make any other changes.I've placed jstl.jar and standard.jar in PORTAL-INF/private/lib folder and c.tld file in PORTAL-INF/taglib folder.



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Jun 11, 2004 at 11:10 AM

    What thing is null that causes your NPE? Can you post the upper part of the stacktrace?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ok. I've tampered with the c.tld, and replaced it in standard.jar.

      And now some of the tags works. JSP 1.1 used another TEI-file (and Java-implementation) for pageContext variables, and without this (which I haven't made) some tags, i.e. the <c:forEach/> tag, doesn't work.