permaculture playing cards*
The moose likes Spring and the fly likes reloading the same page with message - spring mvc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "reloading the same page with message - spring mvc" Watch "reloading the same page with message - spring mvc" New topic
Author

reloading the same page with message - spring mvc

indu iyengar
Ranch Hand

Joined: Jul 30, 2010
Posts: 115
Hi
am using spring mvc with simple form controller . Here I need to reload the samePage along with some errormessage (like already student id already exists or password doesnot match) if Login fails.

any help would be highly appreciated ...
thanks
indu


thanks ,
Indu
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 507

You can use errors.reject("errorcode","errormsg") combined with showForm(request,response,errors) for this purpose..


Regards, Prasad
SCJP 5 (93%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reloading the same page with message - spring mvc
 
Similar Threads
IllegalStateException:Neither BindingResult nor plain target object for bean name available
Spring MVC Request Mapping
org.springframework.beans.NotReadablePropertyException
I�m new with Spring
request is not going into onSubmit