• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

showing error message in Spring MVC.

 
Ranch Hand
Posts: 419
Mac jQuery Objective C
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
pawan chopra
Ranch Hand
Posts: 419
Mac jQuery Objective C
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic