This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Cannot get bean from flowScope in spring web flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Cannot get bean from flowScope in spring web flow" Watch "Cannot get bean from flowScope in spring web flow" New topic
Author

Cannot get bean from flowScope in spring web flow

Bradusca Luisa
Greenhorn

Joined: Oct 28, 2009
Posts: 6
Hi all, I have a problem with my bean saved in flowScope, it doesn't recognize it-i receive null in my service class function, what could be the problem?

And I ask this because with other beans it works. I copy the code for the beans that would work and I saw that in the moment I change the name of the bean-instead of result="flowScope.a"-wich worked fine to result="flowScope.b" it doesn't work anymore(nullPointerException).

Please someone knows what could be the problem?I have to finish this project in a couple of days.
Bradusca Luisa
Greenhorn

Joined: Oct 28, 2009
Posts: 6
Problem solved:
I forgot to change the name of the formObjectName(I was using formAction pattern)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

We have a Spring forum.

Moving this to that forum

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot get bean from flowScope in spring web flow
 
Similar Threads
Beans working together problem
Entity EJB - FinderException
Reentrant!!
WSAD access beans
GWT bean reference problem