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.
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)