This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes showing error message in Spring MVC. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "showing error message in Spring MVC." Watch "showing error message in Spring MVC." New topic
Author

showing error message in Spring MVC.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 362

Hi All,


I am working on spring MVC. I want to know that is there anything same in spring like <html:errors /> tag in struts. Which will display error messages on the jsp page. Actually according to my requirement user clicks on a href link to download file , if file is not found I want to display an error message on the same page where user has selected to download file. Kindly let me know if there is any way in spring MVC to do this. Thanks in advance!


Pawan Chopra
SCJP - DuMmIeS mInD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

You mean something like this? Found at www.springframework.org under documentation

http://static.springframework.org/spring/docs/2.5.x/reference/view.html#view-jsp-formtaglib-errorstag

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 362

Yes, but I think this is like I need to write a separate tag for each error, as given in the documentation for "firstName" and "lastName". But If I am not wrong when we use <html:error/> tag in strutsit displays all the error messages which were added at the time of validation. So I was looking for something like that.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: showing error message in Spring MVC.
 
Similar Threads
Is there an event for a file download?
Spring MVC : Pass from one Controller to Another
refreshing before file download prompt
Redirect to JSP after file download ?!
Error messsages in Spring MVC.