• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

pass error message from action method to jsp

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


This is my action method containing the business logic. I want to show error message from this action method in the jsp. The control goes to the jsp but the error message does not show up.In my jsp i have this code to display error message:



I am new to struts. Also in eclipse it says that saveErrors method is deprecated. i know how to display errors using validate method of the bean class which extends ActionForm.




 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mohan Mehra wrote:
I am new to struts



Unless there is a good reason to learn Struts 1, drop it like a hot rock and learn a "modern" framework (Struts 2, Spring, etc.). Struts 1 is past "end of life" and unsupported, not to mention that it has many architectural issues that make developing with it tedious at best..

Mohan Mehra wrote:
Also in eclipse it says that saveErrors method is deprecated.



I looked at the documentation and source for Struts 1.3.10 and I do not see Action.saveErrors(request, errors) as being deprecated.



 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic