You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gregory F. March" <ma...@gfm.net> on 2003/07/23 21:25:06 UTC
More validation woes
I am creating ActionErrors in my action:
ActionErrors actionErrors = new ActionErrors();
actionErrors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("application.errors.msg",
"some string"));
saveErrors(request, actionErrors);
return(mapping.getInputForward());
return(mapping.getInputForward());
and I am trying to reference them in my jsp by either putting the:
<html:errors/>
tag or using:
<logic:messagesPresent>Something</logic:messagesPresent>
I am not getting anything in the resulting html.
Can someone help me out? I'm not even sure where to go from here.
Thanks,
/greg
--
Gregory F. March -=- http://www.gfm.net:81/~march -=- AIM:GfmNet
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: More validation woes
Posted by Yansheng Lin <ya...@isogis.com>.
It's a common error. Somehow you are not forwarding back to the jsp page that
generated the error.
Put a System.out statement in front of mapping.getInputForward(). I bet it's
different from mapping.getInput();
-----Original Message-----
From: Gregory F. March [mailto:march@gfm.net]
Sent: July 23, 2003 1:25 PM
To: Struts Users Mailing List
Subject: More validation woes
I am creating ActionErrors in my action:
ActionErrors actionErrors = new ActionErrors();
actionErrors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("application.errors.msg",
"some string"));
saveErrors(request, actionErrors);
return(mapping.getInputForward());
return(mapping.getInputForward());
and I am trying to reference them in my jsp by either putting the:
<html:errors/>
tag or using:
<logic:messagesPresent>Something</logic:messagesPresent>
I am not getting anything in the resulting html.
Can someone help me out? I'm not even sure where to go from here.
Thanks,
/greg
--
Gregory F. March -=- http://www.gfm.net:81/~march -=- AIM:GfmNet
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org