• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL tags not recognized on JSP (weblogic)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to use the JSTL Core tag libraries in my application deployed on weblogic 10.3

I copied the JSTL libraries (standard.jar & jstl.jar) to WEB-INF/lib.

Declared in jsp:

<%@ taglib prefix="abc" uri="http://java.sun.com/jsp/jstl/core" %>


web.xml

<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


Usage:

<tr>
<td>

<c:import var = "mageData" url="https://XXX.com/yyy.jsp" />
<c:if test = "${mageData!=null && not empty mageData}">
<c:out value="${mageData}" />
</c:if>

</td>
</tr>

Nothing displays on the browser (as if the code does not exist)

Clicking on "View Source" of the webpage shows the

<c:import var = "mageData" url="https://XXX.com/yyy.jsp" />
<c:if test = "false">
<c:out value="" />
</c:if>


Please assist.
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say:

, it means that the core tag libraries located at the respective uri can be accessed using the prefix provided. You have to use abc as the prefix I believe. Why are you using c? Read this tutorial to understand how tag libraries work.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic