This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Action.ERROR_KEY instruts1.2.8

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
request.setAttribute(ERROR_KEY, valErrors); THIS IS MY code in struts 1.0. now I change struts.jar of struts 1.0 to struts 1.2.8. but its giving an error(error_key can't be resolved).In struts 1.0 org.apache.struts.action.Action.ErrorKey is present but what about in struts 1.2.8
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
if you see the following link "http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/action/Action.html" you can see that the way to add errors which has to be displayed on the page is through
.addErrors() method in the Action class.
Hope this will be helpful to you

regards
Poornima
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic