hi Brady ,
i did like what u said ..
Still my page goes half-blank ..
please give me some solution .
i have invested more than 3 days on this but in vein ..
Regards,
Sachin Hegde
---------- Original Message -----------
From: Brady Hegberg <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Tue, 19 Oct 2004 09:01:56 -0500
Subject: Re: help : ActionMessages not showing !!!!
> 1. Make sure you have the correct entry in your
> ApplicationResources.properties file like this:
> anything=Hello user this is a message for you.
>
> Note: Sorry if this is obvious but the word "anything" is not what
> is stored. Rather new ActionMessage("anything")stores the message
> in your application resources file named "anything".
>
> Note: Usually instead of "anything" this would be named something like
> "messages.program_section.anything".
>
> 2. I don't believe you need the logic:messagesPresent
> tag...html:messages will only output if there are messages present.
> But that may depend on your version of Struts.
>
> 3. If you have Struts 1.2.4 or above you don't need the c:out so
> that message would just be:
>
> <html:messages id="message" message="true">
> ${message}<br>
> </html:messages>
>
> Brady
>
> > hi all
> >
> > i have action messages added in the Action.
> >
> > ActionMessages messages = new ActionMessages();
> > messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
("anything"));
> > messages.add("message", new ActionMessage("something","someValue"));
> > saveMessages(request, messages);
> >
> > and in the JSP page , i have the following code
> >
> > <logic:messagesPresent message="true">
> > <html:messages id="message" message="true">
> > <c:out value="${message}"/><br>
> > </html:messages>
> > </logic:messagesPresent>
> >
> > but it does not show anything . and surprizingly my jsp page goes half-
blank.
> > i tried all that i can. but couldn't get through ..
> >
> > any help is appriciated ..
> >
> > Regards,
> > Sachin Hegde
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> --
> Brady Hegberg <[EMAIL PROTECTED]>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
------- End of Original Message -------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]