my dog learned polymorphism
The moose likes Struts and the fly likes ValidatorForm exception in struts framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ValidatorForm exception in struts framework" Watch "ValidatorForm exception in struts framework" New topic

ValidatorForm exception in struts framework

M Burke
Ranch Hand

Joined: Jun 25, 2004
Posts: 395
When I set an ActionError to the ActionErrors collection, I get an unknown exception in the struts framework after validate() returns. I am using Struts 1.2.9. Any ideas?

public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
ActionErrors errors = new ActionErrors();

String actionMethod = request.getParameter(UIGridGlobal.REQID_METHOD);

if (hiddenCurrentEvent != null && hiddenCurrentEvent.compareTo(UIGridGlobal.USER_EVENT_SEND_FORM) == 0){

if(priceBeginDate == null || priceBeginDate.compareTo("") == 0){
errors.add("no review action", new ActionError("errors.grid.ui.priceBeginDate"));

if(selectedDealers == null || selectedDealers.length == 0){
errors.add("no review action", new ActionError("errors.grid.ui.selectedDealers"));


return errors;
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The ActionError class has been deprecated in Struts Version 1.2.9. Use ActionMessage instead. Note that only ActionError is deprecated. ActionErrors is still good.

Consultant, Sima Solutions
I agree. Here's the link:
subject: ValidatorForm exception in struts framework
It's not a secret anymore!