Re: html:messages

2009-01-19 Thread m.harig
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

Re: html:messages

2009-01-19 Thread dusty
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

Re: html:messages or html:errors???

2006-03-14 Thread Niall Pemberton
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

Re: html:messages or html:errors???

2006-03-13 Thread Jubin Kuriakose
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

Re: html:messages or html:errors???

2006-03-13 Thread Wendy Smoak
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:

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Daniel Henrique Ferreira e Silva
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Brad Balmer
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">

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Yan Hu
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Yan Hu
> > if (!messages.isEmpty()) > saveMessages(request, messages); use addMessages(). saveMessages has been deprecated. > > > > > You left out the "message" attribute. Set it to "true". ---

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
)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

RE: Html:messages vs html:errors

2005-04-06 Thread Fogleson, Allen
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-06 Thread Niall Pemberton
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
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

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
- 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

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
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&

RE: Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
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

Re: Html:messages vs html:errors

2005-04-05 Thread Hubert Rabago
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

Re: Html:messages vs html:errors

2005-04-05 Thread Riyaz Mansoor
> 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

Re: Html:messages tag (Resolved)

2004-06-16 Thread Niall Pemberton
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

RE: Html:messages tag (Resolved)

2004-06-16 Thread Betty Koon
, 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

Re: Html:messages tag (Resolved)

2004-06-16 Thread Niall Pemberton
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

Re: Html:messages tag (Resolved)

2004-06-16 Thread Chris Cranford
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&#

RE: Html:messages tag (Resolved)

2004-06-16 Thread Betty Koon
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

Re: Html:messages tag

2004-06-16 Thread Chris Cranford
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

RE: Html:messages tag

2004-06-16 Thread Betty Koon
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

Re: Html:messages tag

2004-06-16 Thread Chris Cranford
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