IntelliJ Java IDE
The moose likes Spring and the fly likes reloading the same page with message - spring mvc Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply 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: 461

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


Regards, Prasad
SCJP 5 (93%)
 
 
subject: reloading the same page with message - spring mvc
 
Threads others viewed
org.springframework.beans.NotReadablePropertyException
I�m new with Spring
IllegalStateException:Neither BindingResult nor plain target object for bean name available
Spring MVC Request Mapping
request is not going into onSubmit
MyEclipse, The Clear Choice