Hi again all, I am trying to use ActionMessages to display errors. In this particular case I am trying to display an error when the username/password don't validate. I am able to get the Message I want in question to display on the screen and now it's a matter of properly formatting the result. I am trying to figure out how to use the errors.header, errors.prefix, errors.suffix and errors.footer in my code. (That way my errors will have consistent look to them. I am learning this as I go, so this may not be the best manner in which to do this, but here is what I have cobbled together to this point:
What do you have in your ApplicationResources.properties
This is mine:
For me I don't have to add anything extra for my <html:errors /> to show up as a red, UL list. I don't think you need to add anything to the error.message.
Let me know what your ApplicationResources.properties looks like.
The worst thing with having everything is finding a place in the garage to keep it.
Joined: Aug 23, 2006
I'm using MessageResource.properties but mine looks the same as yours. Unfortuantely this is more of a cosmetic thing that has once again been pushed to the side for the moment. I am hoping to get back to it shortly. I will update this post as soon as I can come back to it.