Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-25 Thread Les Dunaway
OK, I have gotten to where I know what is happening. Now, I hope someone can help me to understand why. The ActionMessage is getting properly saved in the request and the Further, the error has a valid key into the current application resouces . Other tags My conclusion: for some reason, t

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-17 Thread Les Dunaway
Joe wrote"A common case here would be if you are returning a redirecting forward; in that case, the JSP would be drawn in response to a second HTTP request, and the saved errors would have been lost. " No, nothing special just the plain vanilla form-jsp setup. struts-config snips:

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread K.C. Baltz
Done: http://issues.apache.org/bugzilla/show_bug.cgi?id=34460 K.C. Joe Germuska wrote: At 11:19 AM -0700 4/14/05, K.C. Baltz wrote: I stand corrected and informed. Now that you mention it, I remember looking into this before. I wish the Struts Users Guide HTML tag API made the difference a litt

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 3:24 PM -0400 4/14/05, Les Dunaway wrote: Joe, Thanks for looking at it. Yes, I am saving the errors - I cut it too short here's all the code if(!ud.isUserExist(username)){ errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.logon.

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Les Dunaway
Joe, Thanks for looking at it. Yes, I am saving the errors - I cut it too short here's all the code if(!ud.isUserExist(username)){ errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.logon.invalid.user")); log.debug("Inval

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 11:19 AM -0700 4/14/05, K.C. Baltz wrote: I stand corrected and informed. Now that you mention it, I remember looking into this before. I wish the Struts Users Guide HTML tag API made the difference a little more obvious in the description. I'm not saying the documentation is incorrect, jus

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread K.C. Baltz
I stand corrected and informed. Now that you mention it, I remember looking into this before. I wish the Struts Users Guide HTML tag API made the difference a little more obvious in the description. I'm not saying the documentation is incorrect, just that the quick skim I did before I sent m

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 8:55 AM -0700 4/14/05, K.C. Baltz wrote: Perhaps you should be using to display your error messages instead of I think it depends on if you use saveErrors or saveMessages in your Action. This is NOT true. The differences between the h:errors tag and the h:messages tag are functional, but bo

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread K.C. Baltz
Perhaps you should be using to display your error messages instead of I think it depends on if you use saveErrors or saveMessages in your Action. K.C. Les Dunaway wrote: I am having problems with Struts 1.2.4 ActionMessage / ActionError. I'm using a setup like recommended on the wiki Acti

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Joe Germuska
At 8:03 AM -0400 4/14/05, Les Dunaway wrote: What am I messing up? In the code you included in your email, you were not saving the errors. If that's not just a copy/paste mistake, then there's your problem. Joe I am having problems with Struts 1.2.4 ActionMessage / ActionError. I'm using a set

Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-14 Thread Les Dunaway
I am having problems with Struts 1.2.4 ActionMessage / ActionError. I'm using a setup like recommended on the wiki ActionMessages am = new ActionMessages(); am.add( ActionMessages.GLOBAL_MESSAGE, new ActionMessage( "not.authorized.for.account" ) ); saveErrors( request, am );