Thanks for replying me. am using struts 1.2 . how do i do it in struts 1.2
dusty wrote:
>
> In your action method use addActionMessage. Then in the jsp page use
> to display the message(s) in the list.
>
> You will be using the MessageStoreInterceptor. If you are using 2.1.6
> make sur
In your action method use addActionMessage. Then in the jsp page use
to display the message(s) in the list.
You will be using the MessageStoreInterceptor. If you are using 2.1.6 make
sure the "store" interceptor is in your stack in struts.xml. If you are
using an earlier version you need t
isn't deprecated - both and
offer different ways of doing the same thing. When it comes to displaying a
message against a single property, is easier and the issue of
including markup in resource bundles doesn't arise.
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Nial
Hi fea
is deprecated as it doesn't allow html styling to the
messages, the only way thats possible is through the reasource bundle which
is bad design priciple. allow messages to be formatted using
html.
here is an eg.
>
>
>
> cla
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
--
Wendy
-
To unsubscribe, e-mail:
To answer my own question, in this case I was able to remove the
redirect attribute and everything works. If I couldn't do that I would
have had to stick the messages in the session.
Thanks,
Ross
Ross Gibb wrote:
Hi Daniel,
Ah yes, that was exactly it, thanks. It may have taken me a long
Hi Daniel,
Ah yes, that was exactly it, thanks. It may have taken me a long time
to figure that out. To save me even more time what was your solution?
The global forward I am forwarding to looks like the following in
struts-config.xml:
I want to display a message at the top using h
Hi Ross,
I know this maybe can't make any sense but i got this problem once due
to some mistakes handling scopes.
Let me explain:
I had an Action instance that did some stuff and in case of errors,
put them all in the request and forward to the next view. But my next
view was a forward action (a
This could be something. I do have the taglib definition but I am using
the el version, so mine looks like this:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html"%>
Would that make a difference? I will try it the other way.
Brad Balmer wrote:
Any chance tha
Any chance that you are missing the include for struts-html?
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
Granted I'm using 1.2, but I'm still using the saveMessages(request,
messages) and using this to display messages and errors:
footer="message.footer">
Hi,
Thanks again but still not working. I tried as you suggested. I don't
think it is a problem with the tag anyway because when I look at
what the browser gets I see
And not
Anyway, I will get the struts source and step through the html:messages
code, perhaps there is som
Try the following... Don't forget to import struts-bean.tld
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
I think it is better to use struts-tags when possible since they were designed
for Struts.
-
To
Hi,
Thanks for the response, but no dice, still doesn't work. I changed the
jsp to the following:
I am using Struts 1.1 so I don't have access to addMessages().
Any other suggestions?
Thanks,
Ross
Yan Hu wrote:
if (!messages.isEmpty())
saveMessages(request, messa
>
> if (!messages.isEmpty())
> saveMessages(request, messages);
use addMessages(). saveMessages has been deprecated.
>
>
>
>
>
You left out the "message" attribute. Set it to "true".
---
)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Fogleson, Allen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 12:25 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Html:messages vs html:errors
Michael,
Are you capturing except
member the exact text) and sorry I cant see your entire text. Can you
forward the applicationResources file and the jsp mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 2:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Html:messages vs html:errors
Thanks,
But ARG That w
TO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 11:30 AM
To: Struts Users Mailing List
S
The problem is with how you've configured your messages resources. Because
you've specified a key your message resources are not being stored under the
"default" messages resources key. There being stored under the bundle key
"ApplicationResources". You just need to remove that (and the id, its
unn
at can I check next?
Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005
One cause of this is if it can't find the message key in your application
resources and you have your message resources configured with null="true".
If you change your message resources config to null="false" in your
struts-config.xml
Then if it can't find the message for some reason, you s
-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 12:28 PM
To: Struts Users Mailing List
Subject: Re: Html:messages vs html:errors
>From this and other messages I think you've got the wrong end of the
stick
regarding the tag. You can use either or
with
89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Fergal O'Shea [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 9:22 AM
To: 'Riyaz Mansoor'; 'Struts Users Mailing List'
Subject: RE: Html:mes
ECTED]>; "'Struts Users Mailing List'"
Sent: Tuesday, April 05, 2005 5:21 PM
Subject: RE: Html:messages vs html:errors
>
> We don't seem to have struts-examples.war readily available here at work.
>
> Does anyone have an example of overriding an ActionForm&
We don't seem to have struts-examples.war readily available here at work.
Does anyone have an example of overriding an ActionForm's validate() method,
but using ActionMessage instead of ActionError (I presume you still have to
use a Collection of ActionErrors), and using html:messages instead of
Here are wiki topics that discuss this:
http://wiki.apache.org/struts/StrutsDeprecatedActionErrors
http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Hubert
On Apr 5, 2005 8:18 AM, Fergal O'Shea <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm a Struts newbie. A lot of the books and documen
> I'm a Struts newbie. A lot of the books and documentation I have on Struts
> is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is
> deprecated, I'd like to use ActionMessages for some new JSPs I'm writing.
the usage is the same.
actionerrors are dependent on certain keys suc
uot; <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 3:19 AM
Subject: RE: Html:messages tag (Resolved)
> I am sorry but I am not clear on what suggestion? Can you elaborate your
> suggestion in code snippnet. Thanks.
> In my case, I am sure, I will only have 1 message set up fo
, 2004 7:18 PM
To: Struts Users Mailing List
Subject: Re: Html:messages tag (Resolved)
This isn't the correct way to use .
It iterates over either all the messages (if you don't specify a property)
or all messages for a property storing each message as a page scope
variable. The way your u
Niall
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 1:33 AM
Subject: RE: Html:messages tag (Resolved)
> I didn't know I have to do the fo
Yup :-) ... that is correct ... :-)
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 8:33 PM
Subject: RE: Html:messages tag (Resolved)
> I didn
I didn't know I have to do the following:
Msg=
-Betty
-Original Message-
From: Betty Koon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Html:messages tag
I did, it doesn't help. Nothing ge
How are you creating the message inside your action? Can you post that code
snippet?
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 8:30 PM
Su
I did, it doesn't help. Nothing get printed out at all.
-Betty
-Original Message-
From: Chris Cranford [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:27 PM
To: Struts Users Mailing List
Subject: Re: Html:messages tag
Have you tried removing "property" fr
Have you tried removing "property" from the messages tag to see if the
message you're wanting to print out exists in the collection at all ?
Hope this helps!
Chris
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wedne
34 matches
Mail list logo