• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

making a Spring MVC website

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I must make a java MVC spring based forum, since I only know the basis (some JSP, HTML, JAVA J2EE) I need some help figuring out an existing one.

first, does each page require a model and controller? because I got a pre-made spring-MVC from my school to look at but :

index.html has no controller or model
ajoutVoituresForm.jsp only has a controller
ParcVoiruresForm.jsp only has a controller

moreover, in web.xml the display name is SpringWebMVC but I can only acces the website from
shouldn't it be

many thanks =D

ps : here is the source code of everything if you want to look at it : http://sliders.alpha.free.fr/MVC/SpringWebMVCFormulaires.rar
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
index.html is probably the default page defined outside of Spring MVC. The model is provided by Spring. You add attributes to it, for example it appears the JSP you have open is expecting a "titre" attribute to be set on the model.

Read this if you haven't already.

It's weird that we cook bacon and bake cookies. Eat this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic