• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL does not work

 
abhay rijhwani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Amit India", please check your private messages immediately.
 
Amit Mittal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic