learn java
The moose likes Struts and the fly likes Iteratin the data in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Iteratin the data in struts" Watch "Iteratin the data in struts" New topic

Iteratin the data in struts

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I'm using <logic:iterate/> to iterate the values.
But it's giving error that

E SRVE0026E: [Servlet Error]-[Cannot find bean in scope session]: javax.servlet.jsp.JspException: Cannot find bean in scope session

the code is
<logic:iterate id="listingmovies" name="acc.movieticketbooking.forms.Listing_MoviesForm" scope="session" property="movieDetails">
<bean:write name="listingmovies" property="movieDetails"/>
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
R u sure that your bean is in session object that comes from the previous page?

The error is self-explanatory and you are the one who is more likely to find out whether your bean is coming along the session object or not, since you got the environment to test...

Try to find the available beans that are in the session object... If there is none, the previous page didn't send it to this page for sure...

Hope it helps...

Co-author of SCMAD Exam Guide, Author of JMADPlus
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Check your action in struts-config file, maybe your scope is not session.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Don't get me started about those stupid light bulbs.
subject: Iteratin the data in struts