This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60752
    
  65

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: 60752
    
  65

"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.
 
Consider Paul's rocket mass heater.
 
subject: EL does not work
 
Similar Threads
Struts template tag does not work properly in VisualAge for Java WTE
logic:forward problem
Display footer on resize
Internationalization login thru to...
javax.servlet.jsp. JspException: Cannot find message resources under key