aspose file tools*
The moose likes BEA/Weblogic and the fly likes JSTL tags not recognized on JSP (weblogic) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JSTL tags not recognized on JSP (weblogic)" Watch "JSTL tags not recognized on JSP (weblogic)" New topic
Author

JSTL tags not recognized on JSP (weblogic)

Sue Ching
Greenhorn

Joined: Apr 26, 2013
Posts: 1
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

Joined: Jul 27, 2010
Posts: 1157

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.


~ Mansukh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL tags not recognized on JSP (weblogic)