• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring problem (SimpleFormController)

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i'm getting a exception when I internally try to redirect to a form (profiles.do) that is implemented using the Spring SimpleFormController, the steaps:

1) First the user goes to "profiles.do" (myProfile) without loggin.

2) The app redirect him to "login.do" that is the SimpleFormController for login.

3) If he did log in successfully, i want to redirect him to "profiles.do", but here's when the exception "Neither BindingResult nor plain target object for bean name available as request attribute" apperas.

The code:
=== A part of my -servlet.xml ===



=== profiles.jsp ===



=== PerfilesComando.java === (The command)


=== SimpleFormController for profiles ===




=== SimpleFormController for login ===


I think it�s caused when i'm returning to the profile view, because it receive no errors, nor command class ...

Any idea would be helpful for me, thanks.
(Sorry for my poor level of English)
 
Antonio Li��n
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry but I didn't read the part of RedirectView on the spring�s documentation yet, I put it because some one would need it:
http://static.springframework.org/spring/docs/2.5.x/api/index.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic