File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Strange exception

Ilja Smoli
Ranch Hand

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

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
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

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...
I agree. Here's the link:
subject: Strange exception
It's not a secret anymore!