A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
making a Spring MVC website
Joined: Jan 08, 2012
Jan 08, 2012 04:55:37
I must make a
MVC spring based forum, since I only know the basis (some
, HTML, JAVA
) 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 :
Joined: Jul 15, 2003
Jan 09, 2012 10:15:29
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.
I agree. Here's the link:
subject: making a Spring MVC website
Spring Web Flow 2 Web Development
a conceptual problem with security in spring
NX: URLy Bird 1.3.1 Connection Factory Design
Relationship between Model (in MVC) and DAO
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013