Re: when to use Action Errors and ActionMessages

2013-03-21 Thread Muralidhar Yaragalla
Thank you so much. On Fri, Mar 22, 2013 at 1:47 AM, Chris Pratt wrote: > If it has action messages, everything proceeds as usual. If it has action > errors, the validation system exits with the return code "input". > (*Chris*) > > > On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla < > ja

Re: when to use Action Errors and ActionMessages

2013-03-21 Thread Chris Pratt
If it has action messages, everything proceeds as usual. If it has action errors, the validation system exits with the return code "input". (*Chris*) On Thu, Mar 21, 2013 at 1:06 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > So even if it has action errors or action messages t

Re: when to use Action Errors and ActionMessages

2013-03-21 Thread Muralidhar Yaragalla
So even if it has action errors or action messages the execute method of action class will not be called is it? On Fri, Mar 22, 2013 at 12:50 AM, Chris Pratt wrote: > Same time, during validation. They are just non-field specific. So If you > have an error (or informational message) to deliver

Re: when to use Action Errors and ActionMessages

2013-03-21 Thread Chris Pratt
Same time, during validation. They are just non-field specific. So If you have an error (or informational message) to deliver to the user you would use these methods. (*Chris*) On Thu, Mar 21, 2013 at 12:16 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > Hi when should we add a

when to use Action Errors and ActionMessages

2013-03-21 Thread Muralidhar Yaragalla
Hi when should we add an action error or action message. I understood field error. It as to be added in validate method when there is any field error in the form( I mean validation error) but when to use other? -- Thanks And Regards, *Muralidhar Yaragalla. *

RE: ActionErrors and ActionMessages not included in the result generated by org.apache.struts2.json.JSONResult

2010-11-22 Thread Alfredo Manuel Osorio Martinez
Manuel Osorio Martinez Enviado el: Monday, November 22, 2010 2:03 PM Para: Struts Users Mailing List Asunto: ActionErrors and ActionMessages not included in the result generated by org.apache.struts2.json.JSONResult Hello, I'm trying to generate a json output with the JSONResult but the pr

ActionErrors and ActionMessages not included in the result generated by org.apache.struts2.json.JSONResult

2010-11-22 Thread Alfredo Manuel Osorio Martinez
Hello, I'm trying to generate a json output with the JSONResult but the problem is that actionMessages and actionErrors properties are not being included. I also tried to pass this parameter to the interceptor but it didn&#

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

actionMessages

2008-07-28 Thread sudeep . jampana
Hi, 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 formatted by [] these c

Re: redirectAction and forwarding actionErrors & actionMessages

2008-06-18 Thread Owen Berry
for displaytag to function correctly. > > 3-. The listX.jsp contains actionerror and actionmessage to provide feedback > to the user. > > > > > My mapping looks like: > >class="com.sag.optimizer.ui.web.action.datamodel.{1}Action" method="{2}&qu

redirectAction and forwarding actionErrors & actionMessages

2008-06-18 Thread Giovanni Azua
; method="{2}"> webui.form{1} webui.list{1} ${actionErrors} ${actionMessages} [EMAIL PROTECTED] type="tiles">webui.requestSucceed

Re: Using ActionMessages

2008-05-23 Thread Laurie Harper
emove ActionErrors, the action was complaining that the validate method is required to return ActionErrors and not ActionMessages. Any workaround? Thanks Dimitris You can't replace ActionErrors with ActionMessages, they represent different things. Perhaps you were thinking of Actio

Using ActionMessages

2008-05-23 Thread Dimitris Mouchritsas
was complaining that the validate method is required to return ActionErrors and not ActionMessages. Any workaround? Thanks Dimitris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem: Lost ActionMessages after redirect to another action

2008-04-17 Thread Antonio Petrelli
2008/4/17, Marc Eckart <[EMAIL PROTECTED]>: > This works fine, but the action messages and action errors I want to display > are lost. > How can I store them over this action chain? You can store them in the request scope, just as a normal attribute. Antonio --

Problem: Lost ActionMessages after redirect to another action

2008-04-17 Thread Marc Eckart
Hi, in some cases I redirect after one action instead to a jsp to another action. This works fine, but the action messages and action errors I want to display are lost. How can I store them over this action chain? Best regards, Marc

Re: Accessing ActionMessages from Tag Library

2007-12-26 Thread Chris Pratt
your Tag Library (through the JSP) the > ActionErrors, ActionMessages and FieldErrors from the controller action. > > Maybe you don´t like this solution (it´s not very beautiful), but it > works :) > > Regards. > > > Chris Pratt escribió: > > > Yes, I've looked

Re: Accessing ActionMessages from Tag Library

2007-12-26 Thread Pablo Vázquez Blázquez
, ActionMessages and FieldErrors from the controller action. Maybe you don´t like this solution (it´s not very beautiful), but it works :) Regards. Chris Pratt escribió: Yes, I've looked deeply into the implementation of so that I can try to duplicate it in a tag more closely resembling , but I can&#

Re: Accessing ActionMessages from Tag Library

2007-12-24 Thread Chris Pratt
Yes, I've looked deeply into the implementation of so that I can try to duplicate it in a tag more closely resembling , but I can't, for the life of me, follow the flow through all the tunnels, passageways, libraries, and wormholes to figure out how it's getting hold of the ActionMessage's, Action

Re: Accessing ActionMessages from Tag Library

2007-12-24 Thread Yoge
Try . More info in http://www.roseindia.net/struts/struts2/struts2uitags/actionerror-and-actionmessage-tag.shtml -- Yoge, AdventNet, Inc. site24x7.com On Dec 23, 2007 2:09 PM, Chris Pratt <[EMAIL PROTECTED]> wrote: > OK, I'm losing my mind trying to figure this out, so I figured I'd > just as

Accessing ActionMessages from Tag Library

2007-12-23 Thread Chris Pratt
OK, I'm losing my mind trying to figure this out, so I figured I'd just ask the people who already know. I'm trying to write a tag library, one of the tags I'm attempting to write is similar to the old tag from Struts 1. But, I can't seem to figure out how to get hold of the messages. I tried t

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread M.Liang Liu
Hi, Richard Sayre Thanks for ur reply. I have been looking for a solution by myself but to find that there was none to resolve it just change the configuration-file. I have no experience in taking use of FreeMarker. However,ur way may be just the only one. I will just try and thanks for ur commen

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread Richard Sayre
For clarification the following line: <#include "/${parameters.templateDir}/xhtml/validationarea.ftl" /> was added to the first line of form.ftl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-29 Thread Richard Sayre
Hi, I had the same problem. I did not like the way the error were being displayed (In a new row above the field that has the error) To do this I have to chenge the XHTML template First I removed the validation from the controlheader-core <#-- REMOVED We have our own Error area <#if hasFieldEr

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-28 Thread Nuwan Chandrasoma
Hi, I think you have to change the actionerror.ftl and actionmessage.ftl file to customize the error/message display. i am not sure there may be some other way to do this also. Thanks, Nuwan Bhuwan wrote: Hey! I am having the same issue. Have you found out a solution for it by any chance?

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-28 Thread Bhuwan
; in > the classpath,as well as defined the struts.xml as: > > > Thanks for reading and looking forward to any reply. > > -- > --M.Liang Liu > > -- View this message in context: http://www.nabble.com/How-to-format-the-actionerrors-and-actionmessages-in-the-js

How to format the actionerrors and actionmessages in the jsp page?

2007-07-27 Thread M.Liang Liu
Hi,all: I would like to add header and footer to the actionerrors so as to it can display in the way my client like. In Struts1.2,i can just put the following code in the properties file: errors.hea

PROBLEM SOLVED - Re: problem with showing ActionMessages

2007-06-20 Thread Aleksandar Matijaca
First of all, thank you all for replying. Jeff you are right, invalid.login was put into the WRONG PROPERTIES file. I moved the projects around, and a new Properties file was created, however, the struts-config.xml was not updated with the location of the new properties file, instead, the old on

Re: problem with showing ActionMessages

2007-06-20 Thread Yoge
onse) throws Exception { ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(" invalid.login")); saveMessages(request, messages); return mapping.findForward("failure"); }

Re: problem with showing ActionMessages

2007-06-19 Thread Jeff Amiel
On 6/19/07, Aleksandar Matijaca <[EMAIL PROTECTED]> wrote: All resources keys are available etc... The code looks rightare you sure that the key "invalid.login" is available? I'm pretty sure that the results would be as you see if it was not. Trysomewhere in your jsp. ---

problem with showing ActionMessages

2007-06-19 Thread Aleksandar Matijaca
Hi there, I am having some really stupid issues -- I am using Struts 1.2, and I have an action that does the following: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionMessages

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Guillaume Carré
2007/6/19, Jeff Amiel <[EMAIL PROTECTED]>: Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. when I loose several hours trying to make a, as you say, "small 'nice to have' component", work, in a GA struts version, I call it a "big" issue (and it's not ad

Re: [S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Jeff Amiel
On 6/19/07, Guillaume Carré <[EMAIL PROTECTED]> wrote: IMHO (with the broken datepicker tag that is being reworked for 2.1) this is THE big "issue" with Struts 2.0.x. At least this is mine. Ya know...I cannot believe that people categorize the datepicker 'issue' as a 'big issue'. I mean...it'

[S2] Validation, actionerrors, actionmessages and redirect

2007-06-19 Thread Guillaume Carré
Action A -> jsp -> Action B with action A populating some elements of the form presented in the jsp when Action B does a "return INPUT" (manually, or through automatic validation), you need it to forward to Action A, to repopulate the form elements, and you don't want

RE: [S2] actionmessages not surviving between requests (redirect-after-post)

2007-06-14 Thread Al Sutton
PROTECTED] Sent: 14 June 2007 19:48 To: user@struts.apache.org Subject: [S2] actionmessages not surviving between requests (redirect-after-post) Hi, I'm trying to develop my app following the redirect-after-post pattern. Of course s:actionmessages do not survive between requests, but this is th

[S2] actionmessages not surviving between requests (redirect-after-post)

2007-06-14 Thread Gabriel Belingueres
Hi, I'm trying to develop my app following the redirect-after-post pattern. Of course s:actionmessages do not survive between requests, but this is the main paradigm behind the pattern (showing the page by doing _other_ request). The question is which are my options to make my actionMes

RE: [S2] ActionMessages and redirects

2007-06-05 Thread Gunnar Hillert
ug in that if you use > addActionError, the message store interceptor, and you have the validation > interceptor enabled you will get redirected to the input result of the > action after the redirect :(. > > Hope this helps, > > Al. > > -Original Message- > Fr

Re: [S2] ActionMessages and redirects

2007-06-04 Thread Al Sutton
Dave, The problem is that if your action uses addActionError and returns INPUT to get a redirect to another action the validation also uses teh input result of the action you've been redirected to. I agree that upon an error you want to go back to the input page, but if your error is added i

RE: [S2] ActionMessages and redirects

2007-06-04 Thread Dave Newton
--- Al Sutton <[EMAIL PROTECTED]> wrote: > at the moment there appears to be a bug in that if > you use addActionError, the message store > Interceptor, and you have the validation interceptor > enabled you will get redirected to the input result > of the action after the redirect :( I'm not s

RE: [S2] ActionMessages and redirects

2007-06-03 Thread Al Sutton
nError, the message store interceptor, and you have the validation interceptor enabled you will get redirected to the input result of the action after the redirect :(. Hope this helps, Al. -Original Message- From: Gunnar Hillert [mailto:[EMAIL PROTECTED] Sent: 04 June 2007 05:52 To:

[S2] ActionMessages and redirects

2007-06-03 Thread Gunnar Hillert
e messages but any object in a Flash, and hence those objects survive the next redirect. See also http://api.rubyonrails.com/classes/ActionController/Flash.html But for the time being I would be already quite happy if there was a simple and standardized way to have my actionMessages survive redirects

Re: [s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Eric Rank
Another important difference between ActionMessages and ActionErrors has to do with how the Validation interceptor works. If you add an ActionError in the 'validate' method (or before the ValidationInterceptor get ahold of the request) of a ValidationAware action, the intercepto

Re: [s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Skip Hollowell
Harring Figueiredo wrote: Here it goes, without testing. I think that the HTML generated is slightly different so that you may apply different CSS style sheets to it. Bingo. That is exactly the reason for the two. Direct from my style sheet: span.actionMessage { background-color: Lig

Re: [s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Harring Figueiredo
wrote: actionMessages is for general messages, and actionErrors for errors. . I don't think there are any implications. regards musachy On 4/24/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > > A quick question on what the recommended method for displaying general > me

Re: [s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Musachy Barroso
actionMessages is for general messages, and actionErrors for errors. . I don't think there are any implications. regards musachy On 4/24/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: A quick question on what the recommended method for displaying general messages when usi

[s2] Difference between actionMessages and actionErrors

2007-04-24 Thread Zoran Avtarovski
A quick question on what the recommended method for displaying general messages when using struts 2, actionMessages or actionErrors. I had a look at the ValidationAware interface and there appears to be no difference between the two. The only difference I could see what that they are accessed by

Re: [S2] Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
;>> >>>> >>>> >>>> >>>> >>>> >>>> The problem is that these tags are never populated while using the AJAX >>>> feature. Neither errors nor messages are displayed at any tim

Re: [S2] Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread Musachy Barroso
That should be it. Just to make sure it is not related to the errors or the messages, replace the with some fixed text, and see if that text is showing up. musachy kedgecomb wrote: I am using a single taglib directive: <%@ taglib prefix="s" uri="/struts-tags" %> Is there something

Re: [S2] Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
either errors nor messages are displayed at any time. If I >> use >> the same url that the s:div tag uses, and key it into the browser >> address, >> the row is added or deleted and the message displays correctly, (using >> the >> exact same jsp). When I use an ajax link: >> >> >> >> >> > name=

Re: Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread Musachy Barroso
The ajax request is handled just like any other request (its asynchronous nature is only related to the client). So whatever the action outputs, it will be sent to the client and inserted inside the div. Use Firebug to see what is the return of the ajax call, plus make sure the jsp fragment has

Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
ew this message in context: http://www.nabble.com/Mixing-Struts2-ajax-functions-with-actionErrors-and-actionMessages-tf3222408.html#a8950048 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: ActionMessages not displaying

2006-12-19 Thread Kranti
lt;[EMAIL PROTECTED]> wrote: > I am trying to get the action messages from action class as follows but not > getting the message but record is inserted properly > > *in action class* > > if(isInserted==true){ > ActionMessages addTaskMessages = new ActionMessages(); > addTas

Re: ActionMessages not displaying

2006-12-19 Thread Niall Pemberton
lows but not getting the message but record is inserted properly *in action class* if(isInserted==true){ ActionMessages addTaskMessages = new ActionMessages(); addTaskMessages.add("addtasksuccess", new ActionMessage(" message.addtask.sucess"

ActionMessages not displaying

2006-12-19 Thread Kranti
I am trying to get the action messages from action class as follows but not getting the message but record is inserted properly *in action class* if(isInserted==true){ ActionMessages addTaskMessages = new ActionMessages(); addTaskMessages.add("addtasksuccess", new Act

Re: ActionMessages

2006-12-14 Thread Niall Pemberton
In Action Class: ActionMessages addTaskMessages = new ActionMessages(); addTaskMessages.add("addtasksuccess", new ActionMessage(" message.addtask.sucess")); saveMessages(request, addTaskMessages); IN JSP same for ActionErrors, On 12/14/06, na

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, addTaskMessa

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

ActionMessages

2006-12-13 Thread Kranti
hi, can anyone tell how * ActionMessages can be used in struts along with html:message tag *

ActionErrors and ActionMessages not working.

2006-11-30 Thread Tamilselvan Radha Krishnan
Hi, I'm using struts 1.2 version and currently held up in a minor issue but I could not figure out what i'm missing. In the code snippet below, From Action class I'm adding an ActionErrors to display an Error message in the JSP. In JSP I've a message Tag with correctly. The Action is correctly

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

ActionMessages in Struts?

2006-10-26 Thread Mallik
HI friends i want to send some message from action class to view. that is like "Inserted successfully", after inserting data to database. how can i do this? help me please... ur's Mallik -- View this message in context: http://www.nabble.com/ActionMessages-in-Struts-

Re: URLs on Wiki broken for ActionMessages page

2006-09-19 Thread Michael Jouravlev
On 9/19/06, Givler, Eric <[EMAIL PROTECTED]> wrote: On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages Any of the URLs at the bottom do not appear to work. Thanks. Fixed. - To unsubscribe, e-mail: [EMAIL

URLs on Wiki broken for ActionMessages page

2006-09-19 Thread Givler, Eric
On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages Any of the URLs at the bottom do not appear to work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Session scope ActionMessages

2006-09-12 Thread Laurie Harper
r way of tidying up that doesn't involve subclassing RequestProcessor and overriding the processCachedMessages to get rid of any accessed ActionMessages from the session? Cheers, Kevin - To unsubscribe, e-mail: [EMAIL PROTE

RE: Session scope ActionMessages

2006-09-11 Thread Kevin Maeer
hedMessages to get rid of any accessed ActionMessages from the session? Cheers, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Session scope ActionMessages

2006-09-10 Thread Kevin Maeer
t only the "standard" ActionMessages get cleared out after they have been displayed. Since the name="something" facility was there, I thought somebody might be using it and I wondered how they were clearing up after themselves. I've had a bit of a think over the week

Re: Session scope ActionMessages

2006-09-08 Thread Laurie Harper
Kevin Maeer wrote: Hi, I'm using ActionMessages stored in the session to display messages on a page and everything works splendidly except that the messages never get removed from the session so every time the user re-enters the page old messages get redisplayed. After a bit of digging a

Session scope ActionMessages

2006-09-07 Thread Kevin Maeer
Hi, I'm using ActionMessages stored in the session to display messages on a page and everything works splendidly except that the messages never get removed from the session so every time the user re-enters the page old messages get redisplayed. After a bit of digging around, this appears

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Niall Pemberton
On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > Dam, looks like I missed updating the tiles version of the > chain-config.xml - the version in struts-core-1.3.5.jar has that > command. Could you file a JIRA issue for this please: > > https://issues.apache.org/struts

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Scott Van Wart
Niall Pemberton wrote: Dam, looks like I missed updating the tiles version of the chain-config.xml - the version in struts-core-1.3.5.jar has that command. Could you file a JIRA issue for this please: https://issues.apache.org/struts/browse/STR Okie, https://issues.apache.org/struts/browse/STR

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Niall Pemberton
On 8/25/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: Niall Pemberton wrote: > The functionality to automtaically remove messages cached in the > session was missing from Struts 1.3.x and only added recently in the > Struts 1.3.5 version: > >http://issues.apache.org/struts/browse/STR-2883 >

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Scott Van Wart
Niall Pemberton wrote: The functionality to automtaically remove messages cached in the session was missing from Struts 1.3.x and only added recently in the Struts 1.3.5 version: http://issues.apache.org/struts/browse/STR-2883 http://svn.apache.org/viewvc?view=rev&revision=412834 Are you

Re: [1.3] Session ActionMessages won't go away

2006-08-25 Thread Niall Pemberton
The functionality to automtaically remove messages cached in the session was missing from Struts 1.3.x and only added recently in the Struts 1.3.5 version: http://issues.apache.org/struts/browse/STR-2883 http://svn.apache.org/viewvc?view=rev&revision=412834 Are you using Struts 1.3.5? Als

[1.3] Session ActionMessages won't go away

2006-08-24 Thread Scott Van Wart
Hi, I have something very close to the following in each of my pages (actually, just in the layout page for tiles, but whatever). Worked fine in Struts 1.2.9 (even though I'm not so sure it's the best way to print messages and errors, but oh well...)

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: Acti

ActionMessages not working

2006-04-27 Thread fea jabi
in action I have ActionMessages messages = (ActionMessages)frm.validate( mapping, request ); if ( messages != null && !messages.isEmpty() ) { saveMessages(request, messages); * return (mapping.findForward(&quo

Re: saveErrors --- ActionErrors to ActionMessages

2006-02-06 Thread gramani
"fea jabi" <[EMAIL PROTECTED]> wrote on 02/06/2006 03:54:43 PM: > I am sorry but none of the links in it are working. > > Where else can I get more info on the same? > > Thanks. hmm.. this link *is* working for me..? http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Geeta

Re: saveErrors --- ActionErrors to ActionMessages

2006-02-06 Thread fea jabi
I am sorry but none of the links in it are working. Where else can I get more info on the same? Thanks. From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: saveErrors --- ActionErrors to ActionMessages Date: Mon,

Re: saveErrors --- ActionErrors to ActionMessages

2006-02-06 Thread gramani
ing, request ); > if ( errors != null && !errors.isEmpty() ) { > saveErrors(request, errors); > . > . > > As the below is deprecated > saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors > errors) >

saveErrors --- ActionErrors to ActionMessages

2006-02-06 Thread fea jabi
, errors); . . As the below is deprecated saveErrors(javax.servlet.http.HttpServletRequest request, ActionErrors errors) How to convert the above to use ActionMessages instead? Thanks. _ Don’t just search. Find. C

Re: ActionErrors and ActionMessages

2005-12-05 Thread Laurie Harper
e.struts.action.ERROR key like this: org.apache.struts.action.ERROR={email=[errors.required[Email]]} The email should exist in the database so there's a verification in SignInAction for that. If the email doesn't exist I add the respecitve ActionMessage (as ActionError is

ActionErrors and ActionMessages

2005-12-05 Thread burnayev
uts.action.ERROR key like this: org.apache.struts.action.ERROR={email=[errors.required[Email]]} The email should exist in the database so there's a verification in SignInAction for that. If the email doesn't exist I add the respecitve ActionMessage (as ActionError is deprecated): ActionMessages er

Re: Problem using ActionMessages!

2005-10-21 Thread Niall Pemberton
I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I > am trying to change the error handling bit. However, I get the > following error with the code changes I have made. Please let me know > if any of you can figure out what can fix it. > > MY CODE: In the Action Cla

Problem using ActionMessages!

2005-10-21 Thread Sonali Kulkarni
I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I am trying to change the error handling bit. However, I get the following error with the code changes I have made. Please let me know if any of you can figure out what can fix it. MY CODE: In the Action Class ActionMessages

Re: errorStyleClass with ActionMessages

2005-10-17 Thread Niall Pemberton
It should be straight forward - there are only two things you need to do: 1) Sore you ActionMessages under the standard struts "error" key - which if your using (or ) you probably are already doing anyway. If you're doing your validation in the ActionForm's validate meth

Re: errorStyleClass with ActionMessages

2005-10-17 Thread Joe Germuska
At 3:26 PM +0100 10/17/05, [EMAIL PROTECTED] wrote: Hi there, I would like to make use of the errorStyleClass functionality with validation errors that I create in my action class using ActionMessages. I guess there must be a way of letting the ActionMessage object know which UI field it is

errorStyleClass with ActionMessages

2005-10-17 Thread paul
Hi there, I would like to make use of the errorStyleClass functionality with validation errors that I create in my action class using ActionMessages. I guess there must be a way of letting the ActionMessage object know which UI field it is relating to. Has anyone managed to do this without

[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
, final String msg_) { log.error(msg_); ActionMessages msgs = new ActionMessages(); msgs.add("action-errors", new ActionMessage(errorKey_, msg_)); saveMessages(request_, msgs); return mapping_.getInputForward(); } Does

ActionMessages not displayed in the UI

2005-10-12 Thread paul
user@struts.apache.org, I have a validate() method on my form bean which returns ActionMessages, I call the method from my action class. In my logs I can see that ActionMessages have been populated and the flow is redirected to my error page. My validation method is: public

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
ion class, i am storing some > messages using SaveErrors(). > > And I am using ActionForward(String path, boolean redirect) for creating the > ActionForward with 'true' value for redirect parameter. > > My question is by doing this can I display the ActionMessages that I ha

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Martin Gainty
sationName/app_en.properties HTH, Martin- - Original Message - From: "Kaizar Amin" <[EMAIL PROTECTED]> To: "atta-ur rehman" <[EMAIL PROTECTED]> Cc: "Struts Users Mailing List" Sent: Tuesday, September 27, 2005 7:20 AM Subject: Re: How to remove the un

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Aladin Alaily
ns, I changed the code to if (username == null || username.trim().length() ==0 ){ ActionMessages messages = new ActionMessages(); ActionMessage message = new ActionMessage("Username/Password cannot be empty"); messages.add(ActionMessages.GLOBAL_MESSAGE, message); sa

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Kaizar Amin
Hi Atta, As per your suggestions, I changed the code to if (username == null || username.trim().length() ==0 ){ ActionMessages messages = new ActionMessages(); ActionMessage message = new ActionMessage("Username/Password cannot be empty"); me

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread atta-ur rehman
Hi there, try this: if (username == null || username.trim().length() == 0){ ActionMessages messages = new ActionMessages(); ActionMessage message = new ActionMessage("credentials.empty"); > messages.add(ActioneMessages.GLOBAL_ERROR, message); > saveMessages(request,messages)

  1   2   >