Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

controller don't display view

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
controlleur et affichage

--------------------------------------------------------------------------------

hi

i use spring 3.0
in a class, i used annotation but the view is never displayer
dans un controller, j'ai bien mis l'annotation, mais la vue n'est pas affiché




when i go to this url

http://localhost:8084/Supervision/userInfo

i got a 404 error

i not added anything in the standard config of dispatcher-servlet.xml, web.xml

any idea?

thanks
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need to post more.

Like your web.xml and your xml config for Spring MVC.

Are you using an InternalResourceViewResolver and have it configured so it takes the String in the ModelAndView and figures out what page to display?

Mark
 
mark smith
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it seem to have other problem

i try to use annotation to reduce xml file

i get:



my controler class



my service class



my dao class


a part of my dispatch servlet file


a part of my application context file




my web.xml



my application-contexxt


i don't have any config for mvc
 
mark smith
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if in remove @Repository in the class UserDaoImpl
and add in application context



that work...

but why that work when i'm using @Autowired, @Repository annotation?

thanks
 
A teeny tiny vulgar attempt to get you to buy our stuff
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic