• 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

SpringMVC

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new in SpringMVC . If I am using Tomcat for running the controllers. Can I see the controllers of Sprig as Servlets.

Is JSP´s, SpringMVC and Tiles a good integration?


For example I don´t understand one line of this code



This line is the line I don´t understand



It looks like a Servlet but where is the bussiness logic? And why it returns a file name?


Regards
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In this we will returning view to the view resolver ,On the basics of view the view resolver whatever you set in your application , This view will decide what will be next page in application


For eg.

if i return ModelAndView("home"), and it will redirect to home.jsp.
 
Himanshu bisht bebo
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Himanshu bisht bebo wrote:In this we will returning view to the view resolver ,On the basics of view the view resolver whatever you set in your application , give the view This view will decide what will be next page in application


For eg.

if i return ModelAndView("home"), and it will redirect to home.jsp.

 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Controllers are not servlets. In your web.xml you define a dispatch servlet this serves as a front controller and delegates to your controller methods based on URL mapping. Do not implement Controller that is the old way. Use a new tutorial that uses Spring version 3.1 or 3.2. Everything is annotation based now (@Controller)
 
reply
    Bookmark Topic Watch Topic
  • New Topic