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

<b>portalapp.xml</b>

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

<application>

<application-config>

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

</application-config>

<components>

<component name="Myjsp">

<component-config>

<property name="SecurityZone" value="com.sap.demo/high_safety"/>

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

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

</component-config>

<component-profile>

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

</component-profile>

<component-profile>

</component-profile>

</component>

</components>

</application>

JSP

<%@ 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.

Regards

Srini

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.

      Regards,

      /Henrik