Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Explain Spring Flow  RSS feed

Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I tried simple HelloWorld Example in Spring 3

but didn't understand the flow properly

What is the meaning of folloeing code in dispatcher-servlet.xml

<context:component-scan base-package="my.pack.controllers"/>

<bean id="viewResolver"

<property name="prefix">
<property name="suffix">
Posts: 17344
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you posted isn't part of Spring Web Flow. That is part of Spring MVC. You do a component scan looking for classes with @Component on it, in most likely cases classes with @Controller on them and those methods are mapped to incoming URLs with @RequestMapping.

The ViewResolver is to resolve what gets returned from the Controller to a particular .jsp file to display back to the user.

He was expelled for perverse baking experiments. This tiny ad is a model student:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!