• 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

Spring Annotation configuration

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to convert my spring mvc project to use annotation. So far, I have configured the default View Controller. Now, I'm working on an Edit controller that I can't get to work probably because I don't have the context xml settings configured properly. My view.jsp contains a link (http:yaddayadda.org?action=edit). In my original project I had 'edit' map to my EditController. But now I can't get the annotation configuration to recognize this action.

Here is my <project>-portlet.xml:



Here is my applicationContext.xml:



Many Thanks.
 
ranger
Posts: 17347
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
Does the PortletModeHandlerMapping work and look for Annotations?

Wouldn't you want to use

DefaultAnnotationHandlerMapping?

Mark
 
laura mccord
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I am using DefaultAnnotationHandlerMapping. After doing some intensive searching on the topic I ran into this thread that described exactly what I was trying to do: http://forum.springsource.org/showthread.php?t=47755 So, I replied to the forum post. It turned out that I needed to change the order of my controllers in the context file. After doing that step I started getting an error that was due to malformed method signatures. I'm in the process of fixing those and hope to get everything squared away soon.

Maybe someone who has had a similar problem will benefit from the posted thread.

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic