Results 1 to 2 of 2
  1. #1
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default To happen of ActionErrors to ActionMessage

    I need to change from ActionErrors to ActionMessage because the first has been deprecate.
    I did that:

    Java Code:
    … ActionErrors errors = new ActionErrors(); errores.add(“Error”, new ActionError (“error.leafOfInvestment.GreaterRateZero“));
    How can I do that with ActionMessage?

    Eric
    Last edited by Eric; 06-15-2007 at 01:59 PM.

  2. #2
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default

    Yes, actionError is deprecated, but you can do that:

    Java Code:
    ActionErrors errores = new ActionErrors(); 
    errores.add("Error", new 
    ActionMessage("error.hojaDeInversion.MajorZero"));
    
    saveErrors(request, (ActionMessages) errors);
    
    
    ActionMessages messages = new ActionMessages(); 
    messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.sheetInversion.Major ")); 
    saveMessages(request, messages);
    Daniel:o

Similar Threads

  1. what happen if an object set to null
    By SaYuNaRa in forum New To Java
    Replies: 5
    Last Post: 04-17-2008, 04:15 AM
  2. actionErrors inside of Action
    By Jack in forum JDBC
    Replies: 2
    Last Post: 07-04-2007, 03:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •