Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
Spring
How do you call a bean from Spring web flow 2
VenkataPrasad Regula
Ranch Hand
Posts: 63
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am not finding
<action>
element in the Spring web flow 2. I am finding on net the action element in web flow 1 as below. Could some one guide me what is the alternative element I can use in place of the action element
Action element
<action bean="formAction" method="bindAndValidate"/>
VenkataPrasad Regula
Ranch Hand
Posts: 63
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The following is the solution for the above issue
mycart-servlet.xml
<!-- Autowired into CartServiceImpl --> <!-- Create a proxy to generate session-scoped shopping carts --> <bean id="shoppingCart" class="mycart.ShoppingCart" scope="session"> <!-- This requires CGLIB --> <aop:scoped-proxy/> </bean>
flows.xml
<!-- action-state must have an evaluate element, a set element, or similar. See the XSD. --> <evaluate expression="shoppingCart.addItem(cartService.getProduct(productId))"/>
Mark Spritzler
ranger
Posts: 17347
11
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks for posting all your answers in your threads, helps out a lot of people.
Mark
Perfect World Programming, LLC
-
iOS Apps
How to Ask Questions the Smart Way FAQ
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How do you pass command related parameters from page to page in Spring Web Flow
How do you pass parameters to a method in Spring Web Flow 2
<action> element is not found in Spring web flow 2
Spring web flow: Not proceeding from first page to second page
Encountering server internal error while running the local application in the tomcat server.
More...