• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange exception

 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I put in request scope a List in my Action class:

Then on my jsp page im iteratig over it:

Everething is fine and iterating, but tomcat's console always give an exception:
org.apache.jasper.JasperException: Cannot find bean statuses in scope request

This is the ONLY place in jsp file where I'm working with this List...
Interesting that I'm gettin a data from this collection normally, but still this exception :roll:

Any ideas?
 
Lance Hill
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Test that you are actually returning a List and not a null from your allStatuses() call.
 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
thx for reply but I said that there is data to iterate and it is iterating...
i see the results of iterate on jsp..
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not believe that is possible. If the jsp has an exception will get only the exception.

Further, there is no way the page could iterate over something it can not find.
 
Ilja Smoli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This probably started to happen after migrating struts from 1.1 to 1.2...

This could be a bug maybe, or...
I don't know what to think but Im not crazy, and not new to struts...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic