It's not a secret anymore!
The moose likes JSP and the fly likes JSTL not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL not working" Watch "JSTL not working" New topic

JSTL not working

william gates
Ranch Hand

Joined: Feb 21, 2007
Posts: 112
I've used jstl before, but I've just started using it in the last few months.

I've been working on this one issue where I thought I might be saving the DB results wrong in the bean or I wasn't setting up the ArrayList correctly in the servlet. And then it came back to was i setting up the <c:for each> and other tags correctly.

But right now I don't know. I went back to just trying a simple sample to just test it.

here is the jsp

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""xhtml1-transitional.dtd">
<title> Test JSTL</title>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="" prefix="c" %>
<c:forEach var="i" begin="1" end="10" step="1">
<cut value="${i}" />

and here are the results
${cnt.count} value is : ${member} ${i}

I've moved the taglib into WEB-INF and tried that to no avail. I moved the reference to the taglib above and below the html file.

We are using websphere 6.0 and as I've said in other posts, if i need to install JSTL or something like it on webspehre, then it is useless to me because I am not the server admin and have no access to the server besides deploying my web app.

Just trying to figure out if I'm doing something wrong?
[ April 13, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63344

Looks like the EL is not enabled.

Originally posted by william gates:
We are using websphere 6.0

Is Websphere 6 a JSP 2.0 container?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JSTL not working
It's not a secret anymore!