You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kavita Mehta <Ka...@hsc.com> on 2009/07/09 15:14:48 UTC
not displaying errors!
Hi,
I am using Struts 2.0 and I am not able to display the action errors in
my JSP.
Action class code :
if( ( getSelectedlocation() == null ) || getSelectedlocation().compareTo(
"" ) == 0
&& ( (getLocation() == null ) ||(
getLocation().compareTo( "" ) == 0 )))
{
mLog.warn( "Location not
specified. Added Error message" );
addActionError( "Please specify a
Location for the message . " );
}
JSP code :
<tr>
<td align="left" valign="top"><p><s:actionerror id="err" /></p></td>
</tr>
The error is added successfully as i can see from the logs but it is not
getting displayed on the JSP ..any pointers ?
Thanks,
Kavita
*****************************************************DISCLAIMER*****************************************************
This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
please notify the sender immediately and delete the message.
********************************************************************************************************************
RE: not displaying errors!
Posted by Martin Gainty <mg...@hotmail.com>.
if you could display the jsp we could see
the actual component for the HTML id="err"
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Thu, 9 Jul 2009 15:21:04 +0200
> From: rgw@lsoft.com
> To: user@struts.apache.org
> Subject: Re: <s:actionerrors> not displaying errors!
>
> My first guess would be that you are not properly dispatching back to
> your input page. A closer look at your struts.xml would clarify this,
> though.
>
> Robert
>
> Kavita Mehta schrieb:
> > Hi,
> > I am using Struts 2.0 and I am not able to display the action errors in
> > my JSP.
> >
> > Action class code :
> >
> > if( ( getSelectedlocation() == null ) || getSelectedlocation().compareTo(
> > "" ) == 0
> > && ( (getLocation() == null ) ||(
> > getLocation().compareTo( "" ) == 0 )))
> > {
> > mLog.warn( "Location not
> > specified. Added Error message" );
> > addActionError( "Please specify a
> > Location for the message . " );
> > }
> >
> >
> > JSP code :
> >
> > <tr>
> > <td align="left" valign="top"><p><s:actionerror id="err" /></p></td>
> > </tr>
> >
> >
> > The error is added successfully as i can see from the logs but it is not
> > getting displayed on the JSP ..any pointers ?
> >
> >
> > Thanks,
> > Kavita
> >
> >
> >
> >
> >
> > *****************************************************DISCLAIMER*****************************************************
> >
> > This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
> > Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
> > addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
> > print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
> > please notify the sender immediately and delete the message.
> >
> > ********************************************************************************************************************
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
Re: not displaying errors!
Posted by Kavita Mehta <Ka...@hsc.com>.
Thanks Robert .. Lemme check the same.
Robert Graf-Waczenski <rg...@lsoft.com>
07/09/2009 06:51 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
Struts Users Mailing List <us...@struts.apache.org>
cc
Subject
Re: <s:actionerrors> not displaying errors!
My first guess would be that you are not properly dispatching back to
your input page. A closer look at your struts.xml would clarify this,
though.
Robert
Kavita Mehta schrieb:
> Hi,
> I am using Struts 2.0 and I am not able to display the action errors in
> my JSP.
>
> Action class code :
>
> if( ( getSelectedlocation() == null ) ||
getSelectedlocation().compareTo(
> "" ) == 0
> && ( (getLocation() == null )
||(
> getLocation().compareTo( "" ) == 0 )))
> {
> mLog.warn( "Location not
> specified. Added Error message" );
> addActionError( "Please specify
a
> Location for the message . " );
> }
>
>
> JSP code :
>
> <tr>
> <td align="left" valign="top"><p><s:actionerror id="err" /></p></td>
> </tr>
>
>
> The error is added successfully as i can see from the logs but it is not
> getting displayed on the JSP ..any pointers ?
>
>
> Thanks,
> Kavita
>
>
>
>
>
>
*****************************************************DISCLAIMER*****************************************************
>
> This message and/or attachment(s) contained here are confidential,
proprietary to HUGHES SYSTIQUE and its customers.
> Contents may be privileged or otherwise protected by law. The
information is solely intended for the entity it is
> addressed to. If you are not the intended recipient of this message, it
is strictly prohibited to read, forward,
> print, retain, copy or disseminate this message or any part of it. If
you have received this e-mail in error,
> please notify the sender immediately and delete the message.
>
>
********************************************************************************************************************
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
*****************************************************DISCLAIMER*****************************************************
This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
please notify the sender immediately and delete the message.
********************************************************************************************************************
Re: not displaying errors!
Posted by Robert Graf-Waczenski <rg...@lsoft.com>.
My first guess would be that you are not properly dispatching back to
your input page. A closer look at your struts.xml would clarify this,
though.
Robert
Kavita Mehta schrieb:
> Hi,
> I am using Struts 2.0 and I am not able to display the action errors in
> my JSP.
>
> Action class code :
>
> if( ( getSelectedlocation() == null ) || getSelectedlocation().compareTo(
> "" ) == 0
> && ( (getLocation() == null ) ||(
> getLocation().compareTo( "" ) == 0 )))
> {
> mLog.warn( "Location not
> specified. Added Error message" );
> addActionError( "Please specify a
> Location for the message . " );
> }
>
>
> JSP code :
>
> <tr>
> <td align="left" valign="top"><p><s:actionerror id="err" /></p></td>
> </tr>
>
>
> The error is added successfully as i can see from the logs but it is not
> getting displayed on the JSP ..any pointers ?
>
>
> Thanks,
> Kavita
>
>
>
>
>
> *****************************************************DISCLAIMER*****************************************************
>
> This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers.
> Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is
> addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward,
> print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error,
> please notify the sender immediately and delete the message.
>
> ********************************************************************************************************************
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org