File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes EL does not work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "EL does not work" Watch "EL does not work" New topic
Author

EL does not work

abhay rijhwani
Greenhorn

Joined: Oct 11, 2007
Posts: 3
Hi,
I have a portlet application on the WebSphere Portal Server 6.0. It is a struts application deployed as a portlet by using IBM's Struts Portlet FrameWork.

It seems that EL does not work.
Here is my code:
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>
<html>
<head>
<title>Count to 10 Example(using JSTL)</title>
</head>

<body>
<table border="1">
<tr>
<td valign="top">
<h3>From 1 to 10</h3>

<c:forEach var="i" begin="1" end="10">
<c ut value="${i}" />

<br />
</c:forEach>
</td>


</tr>

<tr>


<td valign="top"> 
</td>
</tr>
</table>
</body>
</html>

Can AnyOne suggest a possible solution to this problem
Amit Mittal
Greenhorn

Joined: Nov 26, 2007
Posts: 6
Looks like the tld is not the latest one, try

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

this instead of

<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>

Thanks
Amit
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

See the JSP FAQ for information on properly setting up the JSTL.

You should not be putting tld files anywhere! Leave them in the jar files.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

"Amit India", please check your private messages immediately.
Amit Mittal
Greenhorn

Joined: Nov 26, 2007
Posts: 6
I checked the message and changed my name accordingly. I am surprised when I tried to choose this name while registering, it gave me an error saying that it is already in use, thats why I put the contry name in that.
Anway, it worked this time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EL does not work