| 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: 4
|
|
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: 56179
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
|
"Amit India", please check your private messages immediately.
|
 |
Amit Mittal
Greenhorn
Joined: Nov 26, 2007
Posts: 4
|
|
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.
|
 |
 |
|
|
subject: EL does not work
|
|
|