Re: actionMessages

2008-07-29 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I am sending an message for the successful submission of the form by using actionMessage .In the struts xml file i have used the redirect action and passed action message as parameter. In the display i am getting the message .But the problem is the message is getting f

Re: ActionMessages not displaying

2006-12-19 Thread Kranti
Hey niall, its working! Thanks On 12/19/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: Try changing to use the "name" attribute instead of "property" on the "messagesPresent" and "messages" tags: Niall On 12/19/06, Kranti <[EMAIL PROTECTED]> wrote: > I am trying to get t

Re: ActionMessages not displaying

2006-12-19 Thread Niall Pemberton
Try changing to use the "name" attribute instead of "property" on the "messagesPresent" and "messages" tags: Niall On 12/19/06, Kranti <[EMAIL PROTECTED]> wrote: I am trying to get the action messages from action class as follows but not getting the message but record is inse

Re: ActionMessages

2006-12-14 Thread Niall Pemberton
If you use the saveMessages() method in your Action (rather than saveErrors() method) then you need to use the message="true" attribute in the jsp tags: Niall On 12/14/06, Kranti <[EMAIL PROTECTED]> wrote: thanks for the info i am trying the following In Action Class: ActionM

Re: ActionMessages

2006-12-13 Thread Kranti
thanks for the info i am trying the following In Action Class: ActionMessages addTaskMessages = new ActionMessages(); addTaskMessages.add("addtasksuccess", new ActionMessage(" message.addtask.sucess")); saveMessages(request, addTaskMessages); IN JSP same

RE: ActionMessages

2006-12-13 Thread nagesh.kumar
This will work u Thanks Nagesh -Original Message- From: Kranti [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 11:03 AM To: Struts Users Mailing List Subject: ActionMessages hi, can anyone tell how * ActionMessages can be used in st

Re: ActionMessages in Struts?

2006-10-26 Thread Venkata Phani Kumar
hi mallik, you can save some messages in action so that they can be accessed from jsp ActionMessages errorMsgs = new ActionMessages(); errorMsgs.add("messageId", new ActionMessage("message.Inserted_successfully")); saveErrors(request, errorMsgs); in jsp, - Original Message - From: "Mal

RE: ActionMessages not working

2006-04-27 Thread fea jabi
Here is the solution for this just make sure to add message="true" in the html:messages tag i.e IN jsp or just ${CrditRtMsg} From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: ActionMessages not working Date: Thu, 27 Apr

[OT] Re: ActionMessages not displayed in the UI

2005-10-12 Thread Dave Newton
[EMAIL PROTECTED] wrote: I'm not so sure about using different style for front end and back end errors - great for a developer but confusing for a user (of a consumer site) I display form errors within the form itself (with a non-radical message saying they screwed up) and system errors in

Re: ActionMessages not displayed in the UI

2005-10-12 Thread paul
... system-oriented error types never run. Dave When I was using an older version of Struts I used ActionErrors and I could get away with just one set of jsp tags. I guess they have been deprecated for a good reason. Anyhow, when I get time I'll move the validation from my action class t

Re: ActionMessages not displayed in the UI

2005-10-12 Thread Dave Newton
[EMAIL PROTECTED] wrote: Thanks Dave that worked... my errors.jsp is pasted below. So I used two sets of tags one for the struts validation errors and one for the action errors. It would have been more elegant using only 1 set of tags but I guess this works just fine. That's actually what I

Re: ActionMessages not displayed in the UI

2005-10-12 Thread paul
Thanks Dave that worked... my errors.jsp is pasted below. So I used two sets of tags one for the struts validation errors and one for the action errors. It would have been more elegant using only 1 set of tags but I guess this works just fine. <%@ page contentType="text/html;charset=UTF-8" la

Re: ActionMessages not displayed in the UI

2005-10-12 Thread Dave Newton
[EMAIL PROTECTED] wrote: Errors are displayed as I expect through my validation.xml but no error is displayed when it goes through my action class. Any ideas why? protected ActionForward errorToInput(final HttpServletRequest request_, final ActionMapping mapping_, final String errorKey_, f

Re: ActionMessages with redirect

2005-09-27 Thread Michael Jouravlev
Messages are cleaned automatically in Struts 1.2.6+ On 9/27/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > No, it gets cleaned up by the RequestProcessor after you've displayed > the messages. > > Hubert > > On 9/27/05, rahul <[EMAIL PROTECTED]> wrote: > > do I need to clean up session after displ

Re: ActionMessages with redirect

2005-09-27 Thread Hubert Rabago
riginal Message- > > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 27, 2005 7:09 PM > > To: Struts Users Mailing List > > Subject: Re: ActionMessages with redirect > > > > > > There are saveErrors() and saveMessages() that

RE: ActionMessages with redirect

2005-09-27 Thread rahul
do I need to clean up session after displaying ActionErrors saved using saveErrors(request,actionError) method? > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 2005 7:09 PM > To: Struts Users Mailing List > Subject: Re:

Re: ActionMessages with redirect

2005-09-27 Thread Hubert Rabago
There are saveErrors() and saveMessages() that accept a session instead of a request object. The items saved here are removed after the request that accesses them. Hubert On 9/27/05, rahul <[EMAIL PROTECTED]> wrote: > Hi all, > > Just before creating an ActioForward in my Action class, i am stor

Re: ActionMessages vs ActionErrors in jstl

2005-07-17 Thread Grzegorz Stasica
Grzegorz Stasica wrote: hi, Basically I'd like to ask why I'm not able to access my messages stored in action from jsp. ActionMessages m=new ActionMessages(); m.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("error.no_value")); saveMessages(request,m); in jsp I try this value="${reques

Re: ActionMessages

2005-01-19 Thread Scott Piker
How dynamic do you need the messages to be? Can't you just use argument substitution in your messages? e.g.: error.message="{0} must be between {1} and {2}." new ActionMessage("error.message", fieldName, minVal, maxVal); >>> [EMAIL PROTECTED] 1/18/2005 6:07:34 PM >>> Anyone know how to pas

Re: ActionMessages

2005-01-19 Thread Scott Piker
How dynamic do you need the messages to be? Can't you just use argument substitution in your messages? e.g.: error.message="{0} must be between {1} and {2}." new ActionMessage("error.message", fieldName, minVal, maxVal); >>> [EMAIL PROTECTED] 1/18/2005 6:07:34 PM >>> Anyone know how to pas

RE: ActionMessages

2005-01-19 Thread dangmp
Return Receipt Your RE: ActionMessages document

RE: ActionMessages

2005-01-18 Thread Justin Moore
That worked. Thanks! -Original Message- From: Steven Leija [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 18, 2005 6:12 PM To: Struts Users Mailing List Subject: RE: ActionMessages Hey Justin, You can create a dynamic error but still must use the properties file. In your

RE: ActionMessages

2005-01-18 Thread Steven Leija
Hey Justin, You can create a dynamic error but still must use the properties file. In your properties files have something like: errors.dynamic={0} and in your ActionError instance pass in, "errors.dynamic" along with your dynamic error message. Steven -Original Message-

RE: ActionMessages problem

2004-12-27 Thread Sudheer
Hi, I think this discussion thread from the www.theserverside.com will give you what u r looling form. http://www.theserverside.com/discussions/thread.tss?thread_id=30176 Sudheer -Original Message- From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 12

RE: ActionMessages problem

2004-12-27 Thread Barnett, Brian W.
Yes, I have the necessary tag libraries imported. -Original Message- From: Kishore Senji To: Struts Users Mailing List Sent: 12/27/2004 6:40 PM Subject: Re: ActionMessages problem Make sure that you have imported the "html" tag library On Mon, 27 Dec 2004 12:53:27 -0600, Barn

Re: ActionMessages problem

2004-12-27 Thread Kishore Senji
Make sure that you have imported the "html" tag library On Mon, 27 Dec 2004 12:53:27 -0600, Barnett, Brian W. <[EMAIL PROTECTED]> wrote: > Hello, > I'm sure it's something simple, but I can't get my ActionMessage to display > in my JSP page. > > Action class code: > ActionMessages messages = new

RE: ActionMessages and Struts-EL Tags

2004-12-14 Thread Karr, David
This isn't a Struts-EL issue. The "html:messages" tag can be used to iterate over either messages or errors, but not both. It defaults to errors. You can change it to iterate over messages by setting the "message" atttribute to "true". > -Original Message- > From: Hariharan V [mailto:[E

Re: ActionMessages question (simple)

2004-10-26 Thread Vinicius Carvalho
Thompson Marzagão wrote: Caro Vinicius, Your java code is fine. But you got confused on the struts tags. If you want to display ALL the messages you have, (that's probably what you need) one under the other, separated by 's, you would use: But if you only want to display that "removido" messag

Re: ActionMessages question (simple)

2004-10-25 Thread Thompson Marzagão
Caro Vinicius, Your java code is fine. But you got confused on the struts tags. If you want to display ALL the messages you have, (that's probably what you need) one under the other, separated by 's, you would use: But if you only want to display that "removido" message when it exists, you ca

Re: ActionMessages Help

2004-10-06 Thread Niall Pemberton
Either use the or tag http://struts.apache.org/userGuide/struts-html.html#errors http://struts.apache.org/userGuide/struts-html.html#messages Niall - Original Message - From: "Richard" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 06,

RE: ActionMessages won't display

2004-04-19 Thread Matthew Hegarty
roperties' (the default bundle) the message appeared. I thought struts warned about this, but for some reason that didn't happen in this case. Thanks again for your help guys. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19 April 2004 16:14 To: [EMA

RE: ActionMessages won't display

2004-04-19 Thread mike . raath
int other than in the tag? Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19 April 2004 15:54 To: [EMAIL PROTECTED] Subject: RE: ActionMessages won't display Try setting the message="true" attribute of the tag. The default is false which means t

Re: ActionMessages won't display

2004-04-19 Thread Irfandhy Franciscus
Hi, mmm usually for errors I will use ActionErrors. But from what I understand about ActionMessages if you do: Struts will get all the mesages from request that are tied to ActionMessages.GLOBAL_MESSAGE. So perhaps we can try to remove the logic tag .. I feel there is no need for a logic

RE: ActionMessages won't display

2004-04-19 Thread Matthew Hegarty
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19 April 2004 15:54 To: [EMAIL PROTECTED] Subject: RE: ActionMessages won't display Try setting the message="true" attribute of the tag. The default is false which means that you are actually testing for ActionErrors not Act

RE: ActionMessages won't display

2004-04-19 Thread mike . raath
Try setting the message="true" attribute of the tag. The default is false which means that you are actually testing for ActionErrors not ActionMessages. -Original Message- From: Matthew Hegarty [mailto:[EMAIL PROTECTED] Sent: 19 April 2004 15:49 To: '[EMAIL PROTECTED]' Subject: ActionMes