Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Strange exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange exception" Watch "Strange exception" New topic
Author

Strange exception

Ilja Smoli
Ranch Hand

Joined: Dec 02, 2001
Posts: 64
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

Joined: Oct 13, 2004
Posts: 14
Test that you are actually returning a List and not a null from your allStatuses() call.
Ilja Smoli
Ranch Hand

Joined: Dec 02, 2001
Posts: 64
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

Joined: Feb 05, 2003
Posts: 4727

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.


A good workman is known by his tools.
Ilja Smoli
Ranch Hand

Joined: Dec 02, 2001
Posts: 64
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...
 
Consider Paul's rocket mass heater.
 
subject: Strange exception