-
1. Re: EL does not get picked up
peterj Oct 16, 2006 1:49 PM (in response to angbellavia)Make sure you are using the correct setting in your web.xml file. To use EL, you should have:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
-
2. Re: EL does not get picked up
angbellavia Oct 16, 2006 5:14 PM (in response to angbellavia)Yes,
I am doing that. It still does not work. -
3. Re: EL does not get picked up
peterj Oct 16, 2006 5:23 PM (in response to angbellavia)I guess that I would need to see some of your code. Could you post a simple jsp that doesn't work?
-
4. Re: EL does not get picked up
angbellavia Oct 18, 2006 12:49 PM (in response to angbellavia)Here is a JSP from an example I'm reading from a book that does'nt work on my systesm:
<%@ page import="java.util.*" %>
Topic Questions
<h1>Topic Questions</h1>
<jsp:useBean id="questions" class="com.apress.faq.Questions">
<jsp:setProperty name="questions" property="topic" />
</jsp:useBean>
The number of questions in topic ${questions.topic} is ${questions.numQuestions}
<%
Map topic = questions.getQuestions();
Iterator keys = topic.keySet().iterator();
while (keys.hasNext()) {
String key = (String) keys.next();
pageContext.setAttribute("key", key);
%>
Question
${key}:
${questions.questions[key]}
<%
}
%> -
5. Re: EL does not get picked up
peterj Oct 19, 2006 10:16 AM (in response to angbellavia)Sorry, but when I use EL I always pass a bean from my servlet and use it directly, I don't use jsp:useBean. I could, of course, try out your JSP and see if I get it working, unfortunately I am a little swamped right now. I could try some time next week, or maybe some other kind soul could help.