I have JBoss 4.2.2, downloaded this Apache Taglibs standard.jar and jstl.jar 
and put these jars in jboss/server/default/lib directory; got past the 
compilation errors. Now on my rendered HTML page, EL expression just gets 
printed as it is in JSP, it does not get evaluated, seems like JBoss JSP 
compiler just does not apply tag library.
However my java scriptlet prints the values correctly. Can you guys help me. 
Thanks for your time.

Following is my JSP code

  | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 
pageEncoding="ISO-8859-1"%>
  | <%@ page import="java.util.ArrayList" %>
  | <%@ page import="com.model.Friends" %>
  | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
  | <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
  | <html>
  | <head>
  | ...
  | <%
  | ArrayList friendsList = (ArrayList) request.getAttribute("friendsList");
  | if (friendsList != null) {
  |     int i = 0;
  |     for (i=0; i<friendsList.size(); i++)
  |     {
  |             Friends f = (Friends) friendsList.get(i);
  | %>
  |             <%=f.getFirstName()%>
  | <%
  |     }
  | }
  | else {
  | %>
  | <%=new String("List is null")%>
  | <%
  | }
  | 
  | %>
  | <br/>
  | <c:forEach items="${requestScope.friendsList}" var="friend">
  |    First name : <c:out value="${friend.firstName}" />
  |    Last name  : <c:out value="${friend.lastName}" />
  |    Comments   : <c:out value="${friend.comments}" />
  | </c:forEach>
  | ...
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136848#4136848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136848
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to