This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic