You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ja...@polaris.co.in on 2003/05/30 08:18:34 UTC

I have used the tag <html:errors/> for displaying error messages,

It is displaying in the front end as "null message null" , why the message
is preceded and appended with null.

What could be the problem please advise.

Regards,
Jailani.S






Re:

Posted by Vijay Pawar <vs...@orgltd.com>.
<html:errors/> - Conditionally display a set of accumulated error messages.
Displays a set of error messages prepared by a business logic component
and stored as an ActionErrors object, a String, or a String array in
request scope. If such a bean is not found, nothing will be rendered.


In order to use this tag successfully, you must have defined an
application scope MessageResources bean under the default attribute name,
with at least the following message keys:


errors.header - Text that will be rendered before the error messages list.
Typically, this message text will end with <ul> to start the error
messages list.

errors.footer - Text that will be rendered after the error messages list.
Typically, this message text will begin with </ul> to end the error
messages list.

Attributes for this tag :- >

bundle:
The servlet context attribute key for the MessageResources instance to
use. If not specified, defaults to the application resources configured
for our action servlet. [RT Expr]

locale:
The session attribute key for the Locale used to select messages to be
displayed. If not specified, defaults to the Struts standard value. [RT
Expr]

name:
Name of the request scope bean under which our error messages have been
stored. If not present, the name specified by the Action.ERROR_KEY
constant string will be used. [RT Expr]

property:
Name of the property for which error messages should be displayed. If not
specified, all error messages (regardless of property) are displayed. [RT
Expr]



> I have used the tag <html:errors/> for displaying error messages,
>
> It is displaying in the front end as "null message null" , why the message
> is preceded and appended with null.
>
> What could be the problem please advise.
>
> Regards,
> Jailani.S
>
>
>
>
>
> ---------------------------------------------------------------------
> 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