Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem passing an arrayList from a servlet to a jsp

 
Raymond Champion
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am having trouble getting an ArrayList I created in my servlet to get passed to my JSP.

I think I have correctly put the resultset into my bean called SubmissionEvents.

From here I am trying to pass this arraylist to my JSP(homepage.jsp). My app hangs when I run it, after I login into app.

If I remove the <jsp:useBean > tags from the JSP page I am trying to display then the JSP page will display.

If you have any insight into what I am doing wrong and can help me?

Servlet code



The JSP (homepage.jsp)



My bean SubmissionEvents.java

 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Your useBean tag uses the session scope.
2. Your useBean tag expects a SubmissionEvents
3. "seResult" lives in the request scope
4. "seResult" is a List

That doesn't fit. You don't need to use useBean here. Using the EL expression ${seResult} should return you the list, which you can iterate through.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic