Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iteratin the data in struts

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"/>
</logic:iterate>
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your action in struts-config file, maybe your scope is not session.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raj,

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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic