File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL tags not recognized on JSP (weblogic)

 
Sue Ching
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic