You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Neal Kaiser <ne...@makeastore.com> on 2001/02/23 15:07:02 UTC

ActionError Substitution Problem

All my substitutions are showing up like this:

Sorry, the username [Ljava.lang.Object;@7268de is already in use.

My code is like this:

String user_username="test";

errors.add("username",
new ActionError("error.user_username.unique",user_username));

I've also tried:

                        new ActionError("error.user_username.unique",new
String(user_username)));

And my properties file has: 

error.user_username.unique = Sorry, the username {0} is already in use.


I am using Orion and Struts build from 2 nights ago.

What am I doing wrong?

Thanks, Neal