• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSTL not working

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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">
<html>
<head>
<title> Test JSTL</title>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
</head>
<body>
<c:forEach var="i" begin="1" end="10" step="1">
<c:out value="${i}" />
</c:forEach>
</body>
</html>

and here are the results
____________________________
${cnt.count} value is : ${member} ${i}
${i}
${i}
${i}
${i}
${i}
${i}
${i}
${i}
${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 ]
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic