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
html:error or html:message tag is finding it ( I can see all this in
the debuger)
Further, the error has a valid key into
Joe wroteA 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:
form-bean
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
At 8:55 AM -0700 4/14/05, K.C. Baltz wrote:
Perhaps you should be using h:errors to display your error
messages instead of h:messages
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
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
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,
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(Invalid
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
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
9 matches
Mail list logo