Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pass error message from action method to jsp  RSS feed

 
Mohan Mehra
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • 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.




 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!