aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
I�m new with Spring
org.springframework.beans.NotReadablePropertyException
request is not going into onSubmit
IllegalStateException:Neither BindingResult nor plain target object for bean name available
Spring MVC Request Mapping