Re: using RedirectMessageInterceptor with actionErrors

2012-03-05 Thread Dave Newton
to fire, therefor half the page is not rendered > correctly. > > My question is really is there any point of using redirectAction if you > know > that the action that triggered the redirect has actionErrors? Is it > possible > to have the actionErrors display on the redirectAction

using RedirectMessageInterceptor with actionErrors

2012-03-05 Thread jkida
return a result that uses redirectAction it causes the action I am redirecting to not to fire, therefor half the page is not rendered correctly. My question is really is there any point of using redirectAction if you know that the action that triggered the redirect has actionErrors? Is it possible

RE: RE: Ajax & ActionErrors

2011-01-11 Thread CRANFORD, CHRIS
cucchi...@gmail.com] > Sent: Tuesday, January 11, 2011 3:51 PM > To: Struts Users Mailing List > Subject: Re: RE: Ajax & ActionErrors > > When you talk about ajax do you mean dojo, json or what else? > Could you be a little bit more accurate? > Maurizio Cucchiara > > On J

Re: RE: Ajax & ActionErrors

2011-01-11 Thread Maurizio Cucchiara
When you talk about ajax do you mean dojo, json or what else? Could you be a little bit more accurate? Maurizio Cucchiara On Jan 11, 2011 8:14 PM, "CRANFORD, CHRIS" wrote: No I am referring to Struts 2.1.8.1 > -Original Message- > From: Frank W. Zammetti [mailto:fzli...@omnytex.com] > S

RE: Ajax & ActionErrors

2011-01-11 Thread CRANFORD, CHRIS
No I am referring to Struts 2.1.8.1 > -Original Message- > From: Frank W. Zammetti [mailto:fzli...@omnytex.com] > Sent: Tuesday, January 11, 2011 1:04 PM > To: Struts Users Mailing List > Subject: Re: Ajax & ActionErrors > > On 1/11/2011 1:43 PM, CRANFORD, CHR

Re: Ajax & ActionErrors

2011-01-11 Thread Frank W. Zammetti
On 1/11/2011 1:43 PM, CRANFORD, CHRIS wrote: Can someone explain how I can render my action errors when I use Ajax to post a form to the server? Assuming you're talking Struts 1... error are rendered via JSP custom tags, so to make it work with AJAX, without hacking the framework, all you need

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: S2 Ajax validation & actionErrors

2008-08-22 Thread Musachy Barroso
Don't remember about 2.0, but it was done with DWR for sure. On Fri, Aug 22, 2008 at 12:14 PM, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > Musachy Barroso wrote: >> >> I think I misunderstood your question, it does serializes the action >> errors, but it doesn't show them on the page for you. > > Bu

Re: S2 Ajax validation & actionErrors

2008-08-22 Thread Oleg Mikheev
Musachy Barroso wrote: I think I misunderstood your question, it does serializes the action errors, but it doesn't show them on the page for you. But it doesn't serialize them in 2.0.x right? I understand that 2.1 is very promising, but it is still in beta... And since 2.1 doesn't display actio

Re: S2 Ajax validation & actionErrors

2008-08-22 Thread Musachy Barroso
I think I misunderstood your question, it does serializes the action errors, but it doesn't show them on the page for you. On Fri, Aug 22, 2008 at 11:32 AM, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > Hello > > To put it straight: > do I understand it right that S2 AJAX validation doesn't > take car

Re: S2 Ajax validation & actionErrors

2008-08-22 Thread Musachy Barroso
[2.1] No, it also serializes action errors: http://struts.apache.org/2.x/docs/ajax-validation.html musachy On Fri, Aug 22, 2008 at 11:32 AM, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > Hello > > To put it straight: > do I understand it right that S2 AJAX validation doesn't > take care of action er

S2 Ajax validation & actionErrors

2008-08-22 Thread Oleg Mikheev
Hello To put it straight: do I understand it right that S2 AJAX validation doesn't take care of action errors, only the field ones? So that action errors are displayed only on submit. Thanks - To unsubscribe, e-mail: [EMAIL PR

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: [DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor

2008-04-03 Thread Al Sutton
m: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, April 03, 2008 4:42 PM Subject: Re: [DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor On Thu, Apr 3, 2008 at 1:03 AM, Al Sutton <[EMAIL PROTECTED]> wrote: Chris,

Re: [DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor

2008-04-03 Thread Chris Pratt
On Thu, Apr 3, 2008 at 1:03 AM, Al Sutton <[EMAIL PROTECTED]> wrote: > Chris, > > I'm familiar with the code, but the main problem is that there is a "paper > wall" between the StoreInterceptor and the jsp tags, so that one does not > know or rely on how the other works. > > As far as I'm aware t

[DEV-IMPLICATIONS] Re: Actionerrors & the Store Interceptor

2008-04-03 Thread Al Sutton
truts Users Mailing List" Sent: Thursday, April 03, 2008 7:31 AM Subject: Re: Actionerrors & the Store Interceptor On Wed, Apr 2, 2008 at 11:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: Chris, I've used the StoreInterceptor and my opinion is that it just isn't flexibl

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
On Wed, Apr 2, 2008 at 11:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > Chris, > > I've used the StoreInterceptor and my opinion is that it just isn't > flexible enough to use. > > To illustrate the point, consider try following; > > 1) You have a View Action which displays all of the data of a

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Al Sutton
ROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, April 02, 2008 10:55 PM Subject: Re: Actionerrors & the Store Interceptor Sorry Lucas, I'm still not seeing how that will help differentiate between which result's need the messages collected and which don

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
Sorry Lucas, I'm still not seeing how that will help differentiate between which result's need the messages collected and which don't? And I have to agree with Laurie, that I don't understand the difference between the store interceptor and what you're proposing. (*Chris*) On Wed, Apr 2, 2008 a

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Lukasz Lenart
> Umm, that's what the Store Interceptor is. Not exactly, you have to specify for which action store the messages, and for which retrieve them back. There is no magic, everything hand coded ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
Thanks Laurie, any ideas on the original problem? (*Chris*) On Wed, Apr 2, 2008 at 2:19 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Lukasz Lenart wrote: > > > Hi, > > > > I think the best solution is to develop two Interceptors, one will run > > after action invocation and will store messages

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Laurie Harper
Lukasz Lenart wrote: Hi, I think the best solution is to develop two Interceptors, one will run after action invocation and will store messages in session or some other objects from given request key. And second one, which will be run before action invocation, that will retrieve such stored mess

Re: Actionerrors & the Store Interceptor

2008-04-02 Thread Lukasz Lenart
Hi, I think the best solution is to develop two Interceptors, one will run after action invocation and will store messages in session or some other objects from given request key. And second one, which will be run before action invocation, that will retrieve such stored messages from session and p

Actionerrors & the Store Interceptor

2008-04-02 Thread Chris Pratt
We're having a problem configuring the system and, since this seems like a common problem, we're hoping someone has found a solution. We have a bunch of actions that can't be run twice, so we're using the redirect-action result type to make sure a refresh doesn't accidentally resubmit the request.

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Okay that actually works , I had some problem else where that resulted in what I saw. So the solution to my original problem works if anybody needs it. On Jan 11, 2008, at 4:06 PM, Mufaddal Khumri wrote: Apparently thats not working any pointers as to how i could get my errors out manually

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Apparently thats not working any pointers as to how i could get my errors out manually: In my action I am doing: this.addFieldError("email", "Please enter the email address.") and on my ftl: fieldErrors['key']?if_exists This is not working out , what am I missing. On Jan 11, 2008, at 3:38

Re: ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
Anyone who needs it: You can access ${fieldErrors['your-field-name']} -Mufaddal. On Jan 11, 2008, at 2:53 PM, Mufaddal Khumri wrote: I am using ftl templates for the view and want to have access to the collection that has all the error messages in the view. (<@s.actionerror/> just lists all

ActionErrors - is there a way to manually look them up ? ...

2008-01-11 Thread Mufaddal Khumri
I am using ftl templates for the view and want to have access to the collection that has all the error messages in the view. (<@s.actionerror/> just lists all the error messages one after the other.) So, if i have a form like such: Email: First Name: Last Nam

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
rrorLabels() since it does not apply to what I am doing. I think thats about everything. There might be one or 2 places you have to change some code in the template. The big thing here is you have to change the XHTML template. I'm not sure if the simple template has erro

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

2007-07-28 Thread Nuwan Chandrasoma
? Your help is greatly appreciated. Bhuwan. M.Liang Liu wrote: 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

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

2007-07-28 Thread Bhuwan
Hey! I am having the same issue. Have you found out a solution for it by any chance? Your help is greatly appreciated. Bhuwan. M.Liang Liu wrote: > > 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

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

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-18 Thread M.Liang Liu
(it's equivalent to a HTTP Redirect). Cheers, Arnaud -Message d'origine- De: Arnaud Cogoluegnes [mailto:[EMAIL PROTECTED] Envoyé: mercredi 18 juillet 2007 12:46 À: 'Struts Users Mailing List' Objet: RE: How can I add ActionErrors when do the interceptor's int

RE: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-18 Thread Arnaud Cogoluegnes
s, Arnaud -Message d'origine- De : Arnaud Cogoluegnes [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 juillet 2007 12:46 À : 'Struts Users Mailing List' Objet : RE: How can I add ActionErrors when do the interceptor's intercept() method? Perhaps your security interceptor c

RE: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-18 Thread Arnaud Cogoluegnes
i 18 juillet 2007 10:59 À : Struts Users Mailing List Objet : Re: How can I add ActionErrors when do the interceptor's intercept() method? I tried many times,but there's no solutions then. Any help could be greatly appreciated. On 7/17/07, M.Liang Liu <[EMAIL PROTECTED]> wrote: >

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-18 Thread M.Liang Liu
nal Message - > From: "M.Liang Liu" <[EMAIL PROTECTED] > > To: > Sent: Tuesday, July 17, 2007 9:49 AM > Subject: How can I add ActionErrors when do the interceptor's > intercept() > method? > > > > > > Hi,all > > I've got a pr

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread M.Liang Liu
"Username or password incorrect."); } Thanks, Nuwan. - Original Message - From: "M.Liang Liu" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 17, 2007 9:49 AM Subject: How can I add ActionErrors when do the interceptor's intercept() method? > > Hi,all > I&

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread Nuwan Chandrasoma
ks, Nuwan. - Original Message - From: "M.Liang Liu" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 17, 2007 9:49 AM Subject: How can I add ActionErrors when do the interceptor's intercept() method? Hi,all I've got a problem when I put my own interceptors in my app: I

How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread M.Liang Liu
user); if (isAuthenticated) { return actionInvocation.invoke(); } else { //how to add actionErrors here? return Action.

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é
to loose your actionmessages and/or actionerrors or the values the user typed in the form fields. There is no ideal solution yet to do this right! Apart from manually coding your own flash scope filter or whatever brilliant idea you could have. What causes all my headaches with Struts2, is that when an ac

RE: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Al Sutton
ubject: Re: [s2] Best method of passing ActionErrors through a redirect You could forward rather than redirect. Another option is to use "flash scope" which has been discussed on this list previously. My understanding of this is that a filter manages a map on the session and requests have

Re: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Lance
on [mailto:[EMAIL PROTECTED] Sent: 22 May 2007 17:22 To: 'Struts Users Mailing List' Subject: [s2] Best method of passing ActionErrors through a redirect Simple question; Is there any way to retain messages added with addActionError or addActionMessage during a redirect? More

Re: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Nuwan Chandrasoma
4:21 PM Subject: [s2] Best method of passing ActionErrors through a redirect Simple question; Is there any way to retain messages added with addActionError or addActionMessage during a redirect? More complex explanation of my setup; ActionA gets data and has uses a jsp to display the data

RE: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Raghupathy, Gurumoorthy
iling List' Subject: [s2] Best method of passing ActionErrors through a redirect Simple question; Is there any way to retain messages added with addActionError or addActionMessage during a redirect? More complex explanation of my setup; ActionA gets data and has uses a jsp to displa

[s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Al Sutton
Simple question; Is there any way to retain messages added with addActionError or addActionMessage during a redirect? More complex explanation of my setup; ActionA gets data and has uses a jsp to display the data (using my_jsp.jsp). my_jsp.jsp has a comment field which submits data to A

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

[s2] Adding ActionErrors / Messages with a named key

2007-02-16 Thread Eric Rank
Is there a way to associate an ActionError or ActionMessage with a named key in Struts 2? In struts 1 we can add ActionErrors / Messages with a named key. The lines of code below add a new error with the key "login" to the action: ActionMessages errors = new ActionMessages();

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

2007-02-13 Thread kedgecomb
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 all the required taglib directives. >>> &g

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

2007-02-13 Thread Musachy Barroso
o 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 all the required taglib directives. regards musachy kedgecomb wrote: I have been

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

2007-02-13 Thread kedgecomb
lus make > sure the jsp fragment has all the required taglib directives. > > regards > musachy > > kedgecomb wrote: >> I have been using the actionErrors and actionMessage features of Struts2 >> for >> some time and they have worked well for providing user fee

Re: Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread Musachy Barroso
has all the required taglib directives. regards musachy kedgecomb wrote: I have been using the actionErrors and actionMessage features of Struts2 for some time and they have worked well for providing user feedback, (e.g.; "Business Center deleted successfully", "User already exis

Mixing Struts2 ajax functions with actionErrors and actionMessages

2007-02-13 Thread kedgecomb
I have been using the actionErrors and actionMessage features of Struts2 for some time and they have worked well for providing user feedback, (e.g.; "Business Center deleted successfully", "User already exists with this ID", etc.). I add the error or the message in the

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

Re: [Struts2] generating ActionErrors in the Action?

2006-10-12 Thread Ted Husted
;ActionMessage"? The error don't validate the form and the message does? But in this case where can I show the "ActionMessage"? Thanks. Sebastien On 10/10/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > > From: Sébastien LABEY [mailto:[EMAIL PROTECTED] > >

Re: [Struts2] generating ActionErrors in the Action?

2006-10-11 Thread Sébastien LABEY
uot;? Thanks. Sebastien On 10/10/06, Dave Newton <[EMAIL PROTECTED]> wrote: > From: Sébastien LABEY [mailto:[EMAIL PROTECTED] > But with Struts 2, I cannot find how to build these > ActionErrors / ActionError... ActionSupport exposes getFieldErrors for access to the field-speci

RE: [Struts2] generating ActionErrors in the Action?

2006-10-10 Thread Dave Newton
> From: Sébastien LABEY [mailto:[EMAIL PROTECTED] > But with Struts 2, I cannot find how to build these > ActionErrors / ActionError... ActionSupport exposes getFieldErrors for access to the field-specific map of errors (key: field name, value: *List* of String error msgs for that fiel

[Struts2] generating ActionErrors in the Action?

2006-10-10 Thread Sébastien LABEY
Hi, I was using Struts 1.x before and I was used to generate ActionErrors (that contains ActionError) from the errors returned by my 3rd party side (my own framework to access DB). But with Struts 2, I cannot find how to build these ActionErrors / ActionError... what are now the class to deal

Re: How to get the "ActionErrors" object reference ???

2006-06-21 Thread David Durham
Sanjeeb Patel wrote: How do I get the "ActionErrors" object which have been saved in the request. http://struts.apache.org/struts-action/struts-core/apidocs/org/apache/struts/Globals.html -Dave - To unsubscri

How to get the "ActionErrors" object reference ???

2006-06-21 Thread Sanjeeb Patel
Hi, How do I get the "ActionErrors" object which have been saved in the request. Here is the code below .. I have hard coded for the time being to populate the "ActionErrors" object. Once a page populates this "ActionErrors" object how do I get a reference o

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Madhav Bhargava
Provide the following: 1. Action form code - complete 2. JSP snippet that you are using to print the messages Alternatively postpone the validation till the action class. In the action class check for user name and password and if there is a problem then set the errors as: ActionErrors

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Medicherla Lakshmi
t; > On 6/21/06, Medicherla Lakshmi wrote: > > > > Yes, i have validate="true" set in my struts-config.xml. Here's my code. > > > > public ActionErrors validate(ActionMapping mapping, HttpServletRequest > > request) { > > ActionErro

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Madhav Bhargava
he HTML to be rendered properly, ie it will not escape those HTML characters. ~madhav On 6/21/06, Medicherla Lakshmi wrote: > > Yes, i have validate="true" set in my struts-config.xml. Here's my code. > > public ActionErrors validate(ActionMapping mapping, HttpServle

Re: ActionErrors not being displayed in jsp

2006-06-21 Thread Medicherla Lakshmi
quot;true" set in my struts-config.xml. Here's my code. > > public ActionErrors validate(ActionMapping mapping, HttpServletRequest > request) { > ActionErrors errors = new ActionErrors(); > if (getUsername() == null || getUsername().length() < 1) { > errors.add("us

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Madhav Bhargava
false" to the bean:write tag. This will allow the HTML to be rendered properly, ie it will not escape those HTML characters. ~madhav On 6/21/06, Medicherla Lakshmi <[EMAIL PROTECTED]> wrote: Yes, i have validate="true" set in my struts-config.xml. Here's my code.

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
Yes, i have validate="true" set in my struts-config.xml. Here's my code. public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (getUsername() == null || getUsername

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread David Friedman
, June 21, 2006 12:19 AM To: Struts Users Mailing List Subject: Re: ActionErrors not being displayed in jsp Hi, Am not using validator.xml for validation. But just the Actionform validate method to validate the username and password submitted without values. I tried to use even ActionMess

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
and Regards, MSV Lakshmi. Pankaj Gupta <[EMAIL PROTECTED]> wrote: Use ActionMessages in place of ActionErrors. See: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 regards, Pankaj [EMAIL PROTECTED] wrote: > Hi, > > public ActionErrors validate(ActionMappin

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Pankaj Gupta
Use ActionMessages in place of ActionErrors. See: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 regards, Pankaj [EMAIL PROTECTED] wrote: Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread mansooraks
Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { ActionErrors errors = new ActionErrors(); if ((username == null) || (username.length() == 0)) { errors.add("use

ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
HI, Can anyone please explain me how to validate a login page using validate method of actionform. Am not able to display the errors in my jsp page though i wrote in my jsp. Please give any example of using ActionErrors. Thanks and Regards, MSV Lakshmi

RE: Counting ActionErrors from JSP

2006-05-06 Thread Ruben Cepeda
Philihp, If you want to get accesses to the ActionErrors class "size()" method from a JSP thru lets say JSTL. You will can extend the ActionErrors and makes the method "getSize()". The access the ActionErrors class in the page my its name (see http://struts.apache.org/

Re: Counting ActionErrors from JSP

2006-05-05 Thread Tarun Reddy
y through Struts and JSTL Tags to get a "count" of the number of ActionMessages or ActionErrors? I would like my to display messages in a numbered bulleted list when there are more than one, but just display the one outside of a list when there is only one. Thanks, Philihp

Counting ActionErrors from JSP

2006-05-05 Thread Philihp Busby
Hi Struts List, Is there a way through Struts and JSTL Tags to get a "count" of the number of ActionMessages or ActionErrors? I would like my to display messages in a numbered bulleted list when there are more than one, but just display the one outside of a list when there is only on

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
"fea jabi" <[EMAIL PROTECTED]> wrote on 02/06/2006 03:39:55 PM: > I am having the below code now in my dispatch Action in one of the methods > in it. > > > DynaValidatorForm frm = (DynaValidatorForm)form; > > ActionErrors errors = frm.validate( mapp

saveErrors --- ActionErrors to ActionMessages

2006-02-06 Thread fea jabi
I am having the below code now in my dispatch Action in one of the methods in it. DynaValidatorForm frm = (DynaValidatorForm)form; ActionErrors errors = frm.validate( mapping, request ); if ( errors != null && !errors.isEmpty() ) { saveErrors(request

Re: ActionErrors and ActionMessages

2005-12-05 Thread Laurie Harper
ng standard validation errors to messages so that they are added upder org.apache.struts.action.ACTION_MESSAGE and are picked up by html:messages with message="true"? 3. ValidatorForm.validate returns ActionErrors and is not deprecated. I don't get it. Can someone enlighten me on that?

ActionErrors and ActionMessages

2005-12-05 Thread burnayev
g standard validation errors to messages so that they are added upder org.apache.struts.action.ACTION_MESSAGE and are picked up by html:messages with message="true"? 3. ValidatorForm.validate returns ActionErrors and is not deprecated. I don't get it. Can someone enlighten me on that? I&#

ActionErrors inside validate of ValidatorForm?

2005-08-25 Thread 梁炳場
validate() is a function of ValidatorForm I have written some checking inside validate() However validate returns ActionErrors. However can I change it to ActionMessages so that my checking inside in validate() still valid when ActionErrors deprecates in the future? And Inside validate(), The

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

ActionMessages vs ActionErrors in jstl

2005-07-16 Thread Grzegorz Stasica
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="${requestScope['org.apache.struts

ActionErrors & ActionMessages bif problem

2005-05-20 Thread Vinicius Caldeira Carvalho
n front of each property) So this is a typical piece of code: ActionErrors errors = new ActionErrors(); errors.add("org.struts.action.ERROR",new ActionMessage("general.error"); //this shall be displayed on top errors.add("invalidUser", newActionMessage("user.invali

Re: How to get the ActionErrors object from the request

2005-05-13 Thread Rutger Heijmerikx
http://www.onjava.com/pub/a/onjava/2003/07/30/jakartastruts.html?page=2 On 5/12/05, Néstor Boscán <[EMAIL PROTECTED]> wrote: > Hi > > Does somebody know how I can get the ActionErrors object from the request??? > > Regard

Re: How to get the ActionErrors object from the request

2005-05-12 Thread Mehmet E.
http://javaboutique.internet.com/tutorials/excep_struts/ A good article Handling Messages, Errors and Exceptions in Struts 1.1 > Hi > > Does somebody know how I can get the ActionErrors > object from the request??? > > Regards, &

RE: How to get the ActionErrors object from the request

2005-05-12 Thread Freddy Villalba A.
lenty of other ways to accomplish this... but these are the 2 I remember at the moment (I'm a bit rusty, I know...) My 2 cents. -Mensaje original- De: Néstor Boscán [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de mayo de 2005 17:28 Para: 'Struts Users Mailing List' Asun

Re: How to get the ActionErrors object from the request

2005-05-12 Thread Aladin Alaily
Hi Néstor, You can do that with the following code: ActionErrors errors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY); Aladin > Hi > > Does somebody know how I can get the ActionErrors object from the > request??? > > Regards,

RE: How to get the ActionErrors object from the request

2005-05-12 Thread McDonnell, Colm (MLIM)
request.getAttribute(Globals.ERROR_KEY); -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 16:28 To: 'Struts Users Mailing List' Subject: How to get the ActionErrors object from the request Hi Does somebody know how I can get the ActionErr

RE: How to get the ActionErrors object from the request

2005-05-12 Thread Allistair Crossley
] > Sent: 12 May 2005 16:28 > To: 'Struts Users Mailing List' > Subject: How to get the ActionErrors object from the request > > > Hi > > Does somebody know how I can get the ActionErrors object from &

How to get the ActionErrors object from the request

2005-05-12 Thread Néstor Boscán
Hi Does somebody know how I can get the ActionErrors object from the request??? Regards, Néstor Boscán

  1   2   >