[jboss-user] [Beginners Corner] - Re: EL does not get picked up

angbellavia do-not-reply at jboss.com
Wed Oct 18 12:49:12 EDT 2006


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]}
<%
}
%>



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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979148



More information about the jboss-user mailing list