This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Spring and the fly likes controller don't display view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "controller don Watch "controller don New topic
Author

controller don't display view

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 245
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
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 245
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

Joined: Apr 05, 2005
Posts: 245
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: controller don't display view
 
Similar Threads
Spring MVC problem
Spring MVC Issue: Passing data to view
Problem with validation example
Spring Framework
Send/receive request from jsp to a Spring portlet.