Re: Conversion error message

2025-03-12 Thread Prasanth Pasala
Thank you. On 3/12/25 12:57 AM, Lukasz Lenart wrote: pon., 10 mar 2025 o 18:10 Prasanth napisał(a): com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator Are we supposed to use this annotation for a method to override the default validator? This annotation only exposes

Re: Conversion error message

2025-03-11 Thread Lukasz Lenart
pon., 10 mar 2025 o 18:10 Prasanth napisał(a): > com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator > Are we supposed to use this annotation for a method to override the > default validator? > This annotation only exposes any conversion errors for a given field. It doesn

Re: Conversion error message

2025-03-10 Thread Lukasz Lenart
śr., 5 mar 2025 o 16:21 Prasanth napisał(a): > They are, see below. > > Ok, that should do the trick Should I not be using > com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator > to set the message. This is not the class in > com.opensymphony.xwork2.validator.validators w

Re: Conversion error message

2025-03-05 Thread Prasanth
., 4 mar 2025 o 20:35 Prasanth napisał(a): I have the below line in the Action.properties file and it in the WEB-INF/classes folder in the sample package as the actual action class. But I am getting the standard error message rather than the custom one. The file must be in the same "pa

Re: Conversion error message

2025-03-04 Thread Lukasz Lenart
wt., 4 mar 2025 o 20:35 Prasanth napisał(a): > I have the below line in the Action.properties file and it in the > WEB-INF/classes folder in the sample package as the actual action class. But > I am getting the standard error message rather than > the custom one. The file mu

Re: Conversion error message

2025-03-04 Thread Prasanth
I have the below line in the Action.properties file and it in the WEB-INF/classes folder in the sample package as the actual action class. But I am getting the standard error message rather than the custom one. invalid.fieldvalue.retirementDate=Invalid date format. Please use MM/dd/

Re: Conversion error message

2025-03-04 Thread Prasanth Pasala
I will try the xxxAction.properties file.  So @ConversionErrorFieldValidator is not an annotation to replace the xxxAction-validation.xml where we can specify the different validations we need and the corresponding messages? Thanks, Prasanth On 3/4/25 9:44 AM, Lukasz Lenart wrote: pon., 3 mar

Re: Conversion error message

2025-03-04 Thread Lukasz Lenart
pon., 3 mar 2025 o 23:32 Prasanth napisał(a): > > Hi, > > I have a custom message for conversion error as below. But the webpage is > showing this and the default struts message. How do I suppress the struts > default message? I am using Struts 6.7.0 > > @ConversionErrorFieldValidator(field

Conversion error message

2025-03-03 Thread Prasanth
Hi, I have a custom message for conversion error as below. But the webpage is showing this and the default struts message. How do I suppress the struts default message? I am using Struts 6.7.0     @ConversionErrorFieldValidator(fieldName = "retirementDate",  message = "Invalid date format. Pl

Re: Struts - XWork validation - error message not taking parameters

2018-03-16 Thread Lukasz Lenart
2018-03-15 14:18 GMT+01:00 Vikul Aggarwal : > Hi > > I am using xwork validation to valid whether the value of an integer falls > in a valid range or not. > > This is how the validator is configured: > > > 0 > 9 > > > > > int validator i

Struts - XWork validation - error message not taking parameters

2018-03-15 Thread Vikul Aggarwal
Hi I am using xwork validation to valid whether the value of an integer falls in a valid range or not. This is how the validator is configured: 0 9 int validator is com.opensymphony.xwork2.valida tor.validators.IntRangeFieldValidator

Re: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
Hello, Thank You, I found also the tag in the  http://struts.apache.org/development/2.x/docs/form-validation.html Styling The Error Messages The Struts 2 s:head tag can be used to provide CSS that includes a style for the error message. Add to register.jsp before the closing HTML tag

RE: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Martin Gainty
tag.setId("myId"); tag.setLabel("mylabel"); tag.setName("foo"); tag.setValue("bar"); tag.setTitle("mytitle"); tag.setCssErrorClass("errclass"); testAction.addFieldError("foo", "bar error message&qu

Re: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
name: a écrit : Hello, I don't find in the strutsexamples ( 6 form_validation, 7 message_ressource...etc) where I could write red color when error message is displayed in loginForm.jsp First the validator LoginAction-validation.xml works fine with required fields. Then the authentic

Re: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
In the screen, with struts2examples/form_validation the dynamics tag are : First name is required. First name: a écrit : Hello, I don't find in the strutsexamples ( 6 form_validation, 7 message_ressource...etc) where I could write red color when error message is display

2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
Hello, I don't find in the strutsexamples ( 6 form_validation, 7 message_ressource...etc) where I could write red color when error message is displayed in loginForm.jsp First the validator LoginAction-validation.xml works fine with required fields. Then the authentication with LoginA

Re: Custom error message per converter

2013-05-23 Thread Lukasz Lenart
ng.Integer another message and so on and if no custom message is found > the default is showed. > > -Mensaje original- > De: Alfredo Manuel Osorio Martinez > Enviado el: Thursday, May 23, 2013 8:50 AM > Para: Struts Users Mailing List > Asunto: RE: Custom err

RE: Custom error message per converter

2013-05-23 Thread Alfredo Manuel Osorio Martinez
l a custom message for java.lang.Integer another message and so on and if no custom message is found the default is showed. -Mensaje original- De: Alfredo Manuel Osorio Martinez Enviado el: Thursday, May 23, 2013 8:50 AM Para: Struts Users Mailing List Asunto: RE: Custom error message per

RE: Custom error message per converter

2013-05-23 Thread Alfredo Manuel Osorio Martinez
} return ""; } } -Mensaje original- De: Lukasz Lenart [mailto:lukaszlen...@apache.org] Enviado el: Thursday, May 23, 2013 8:01 AM Para: Struts Users Mailing List Asunto: Re: Custom error message per converter Could you show source code of your DateConverter? Regards

Re: Custom error message per converter

2013-05-23 Thread Lukasz Lenart
Could you show source code of your DateConverter? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/23 Alfredo Manuel Osorio Martinez : > Hello, > > Is it possible to configure a custom error message per converter? > > For example I have t

Custom error message per converter

2013-05-22 Thread Alfredo Manuel Osorio Martinez
Hello, Is it possible to configure a custom error message per converter? For example I have this in my xwork-conversion.properties: java.util.Date=mx.com.afirme.midas2.converter.DateConverter Whenever a Date conversion fails in any action I'd like to show a message like this: Incorrect f

Not able to show error message when user-id filed is empty

2011-05-08 Thread Neha Bhargava
HI, I am trying to code a simple user-id and login webpage in struts. I need to show error message when user-id or password field is left blank. LoginAction.java: package com.example.action; import com.example.form.*; import org.apache.struts.action.Action; import

Re: Filed Error message withput bullets.

2010-11-18 Thread Maurizio Cucchiara
Pratt [mailto:thechrispr...@gmail.com] > Sent: Wednesday, November 17, 2010 11:00 PM > To: Struts Users Mailing List > Subject: Re: Filed Error message withput bullets. > > Maybe try http://lmgtfy.com/?q=CSS+Style+UL > (*Chris*) > > On Wed, Nov 17, 2010 at 9:21 AM, Satheesh Kannan A

RE: Filed Error message withput bullets.

2010-11-18 Thread Satheesh Kannan A B
: Re: Filed Error message withput bullets. Maybe try http://lmgtfy.com/?q=CSS+Style+UL (*Chris*) On Wed, Nov 17, 2010 at 9:21 AM, Satheesh Kannan A B < satheesh.kan...@hcl.com> wrote: > Hi, > I have configured in struts.properties as theme=simple. > I don't know where to de

Re: Filed Error message withput bullets.

2010-11-17 Thread Maurizio Cucchiara
>> Thanks and Regards, >> >> Satheesh Kannan A B >> >> >> >> >> -Original Message- >> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] >> Sent: Wednesday, November 17, 2010 10:45 PM >> To: Struts Users Mailing List

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
e me some > examples. > > Thanks and Regards, > > Satheesh Kannan A B > > > > > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Sent: Wednesday, November 17, 2010 10:45 PM > To: Struts Users Mailing List > Subjec

Re: Filed Error message withput bullets.

2010-11-17 Thread Maurizio Cucchiara
ds, > > Satheesh Kannan A B > > > > > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Sent: Wednesday, November 17, 2010 10:45 PM > To: Struts Users Mailing List > Subject: Re: Filed Error message withput bullets. >

RE: Filed Error message withput bullets.

2010-11-17 Thread Satheesh Kannan A B
esday, November 17, 2010 10:45 PM To: Struts Users Mailing List Subject: Re: Filed Error message withput bullets. Did you try to redefine css property like list-style-type? 2010/11/17 Satheesh Kannan A B > Hi, > > I need to display the field error message below each text field without the &

Re: Filed Error message without bullets.

2010-11-17 Thread Anjib Mulepati
I need help on same problem . I am using 1.3.8. Anjib On 11/17/2010 12:18 PM, Dave Newton wrote: On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
Sorry, I assumed it was Struts 2. I didn't remember Struts 1 automatically putting the errors in lists, did it? (*Chris*) On Wed, Nov 17, 2010 at 9:18 AM, Dave Newton wrote: > On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: > > I need to display the field error

RE: Filed Error message withput bullets.

2010-11-17 Thread Satheesh Kannan A B
Struts version 2.1.8. Thanks and Regards, Satheesh Kannan A B -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Wednesday, November 17, 2010 10:49 PM To: Struts Users Mailing List Subject: Re: Filed Error message withput bullets. On Wed, Nov 17, 2010 at 12:05

Re: Filed Error message withput bullets.

2010-11-17 Thread Dave Newton
On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: > I need to display the field error message below each text field without the > bullet points. > Please suggest me a how to do. Since am getting error message with bullet > points. What version of S

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
the field error message below each text field without the > bullet points. > Please suggest me a how to do. Since am getting error message with bullet > points. > > Thanks in Advance. > > Satheesh Kannan A B > > > __

Re: Filed Error message withput bullets.

2010-11-17 Thread Maurizio Cucchiara
Did you try to redefine css property like list-style-type? 2010/11/17 Satheesh Kannan A B > Hi, > > I need to display the field error message below each text field without the > bullet points. > Please suggest me a how to do. Since am getting error message with bullet > poin

Filed Error message withput bullets.

2010-11-17 Thread Satheesh Kannan A B
Hi, I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am getting error message with bullet points. Thanks in Advance. Satheesh Kannan A B ::DISCLAIMER

Re: Error Message on the page source

2010-06-30 Thread Paweł Wielgus
Hi, did your app start without any problems? It looks like there is something wrong on startup. Best greetings, Paweł Wielgus. 2010/6/28 Nadipally, Srikar : > > Hi, > > I am a struts 2 beginner, I have written a basic login struts application and > when I inspect the page source of the welcome.

Error Message on the page source

2010-06-28 Thread Nadipally, Srikar
Hi, I am a struts 2 beginner, I have written a basic login struts application and when I inspect the page source of the welcome.jsp which is a page displayed on successful login, Iam seeing some error messages as shown below.Why am I getting such errors after successful output is shown. JBos

Re: RequiredFieldValidator and error message from property file via key

2009-12-06 Thread nguyenlinh
> will never be the case for a primitive field. > > > -- View this message in context: http://old.nabble.com/RequiredFieldValidator-and-error-message-from-property-file-via-key-tp26640581p26669544.html Sent from the Strut

Re: RequiredFieldValidator and error message from property file via key

2009-12-06 Thread nguyenlinh
I found the @ConversionErrorFieldValidator and it works almost the way I wanted. Now I get my error message but I also get the default struts error message which is: Invalid field value for field "". Is there any "simple" way I can get rid of the default message from struts?

Re: RequiredFieldValidator and error message from property file via key

2009-12-06 Thread nguyenlinh
> -- View this message in context: http://old.nabble.com/RequiredFieldValidator-and-error-message-from-property-file-via-key-tp26640581p26669216.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: RequiredFieldValidator and error message from property file via key

2009-12-04 Thread Greg Lindholm
getText("myFieldErrorMsg")); >    } > } > > When validation fails for setMyField I don't get the expected error > message from my resource bundle. > Instead I get a struts default error message "Invalid field value for field > ..." > > But when i

RequiredFieldValidator and error message from property file via key

2009-12-04 Thread Per Johansson
ride public void validate() { if (!isMyFieldValid(myField)) { addFieldError("myField", getText("myFieldErrorMsg")); } } When validation fails for setMyField I don't get the expected error message from my resource bundle. Instead I get a struts default error mes

Re: Passing value in error message

2009-09-06 Thread Tommy Pham
- Original Message > From: Muhammad Owais > To: user@struts.apache.org > Sent: Sunday, September 6, 2009 12:04:04 AM > Subject: Passing value in error message > > > Dear; > I am looking for a solution to pass value as parameter to the error message. > What

Passing value in error message

2009-09-06 Thread Muhammad Owais
Dear; I am looking for a solution to pass value as parameter to the error message. What I want to achive is that I have to validate Date field. This date field's validation is of general type and with the concept of re-useablity.  The validation rule(s) is like the date should be greater

Passing value in error message

2009-09-05 Thread Muhammad Owais
Dear; I am looking for a solution to pass value as parameter to the error message. What I want to achive is that I have to validate Date field. This date field's validation is of general type and with the concept of re-useablity.  The validation rule(s) is like the date should be greater

controlling error message placement for client side validation

2009-08-22 Thread Mitch Claborn
css_xhtml theme. Using server-side validation, the error message for field validation is placed above the input field. Using client side, the error message is shown below. I prefer the messages above. Is there a way to force the client-side validation to put the messages above the input field

Re: Customizing "content type not allowed" error message

2009-07-03 Thread dusty
, Garrett C. wrote: > > I'm trying to customize this error message for a file upload form control, > and running into problems: > > I've created a new properties file named "msgs.properties" with the error > message I'd like to show: > > struts.mess

Customizing "content type not allowed" error message

2009-07-02 Thread Wampole, Garrett C.
I'm trying to customize this error message for a file upload form control, and running into problems: I've created a new properties file named "msgs.properties" with the error message I'd like to show: struts.messages.error.content.type.not.allowed={1} is not o

Re: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread Dave Newton
sajidbigler wrote: i have done and followed all steps and following are the jars in my application(MMSApplication\WebRoot\WEB-INF\lib) commons-beanutils-1.7.0.jar commons-fileupload-1.2.1.jar commons-io-1.4.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-validator-1.3.1.jar dwr

Re: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread Dave Newton
sajidbigler wrote: why forum skips files \MMSApplication\WebRoot\WEB-INF\lib in bracket and param name="allowedTypes" in struts.xml while i post it ? :( application/vnd.ms-excel Probably because it tries to interpret tags as actual tags; that's why using the mailing list directly and posting

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
why forum skips files \MMSApplication\WebRoot\WEB-INF\lib in bracket and param name="allowedTypes" in struts.xml while i post it ? :( application/vnd.ms-excel -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-working-fine-but-no-pr

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
/ComposeSMSSubscriptions.jsp /pages/upload_success.jsp -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-working-fine-but-no-proper-error-message-is-shown-to-user-tp22535689p22536371.html

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
rDispatcher.java:395) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs. -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-working-fine-but-no-proper-error-message-is-shown-to-user-tp22535689p22536214.html Sent fr

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread ravindra
: RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user Hi Ravindra, I have done it but really dont no why it dint got pasted properly on forum image/png,image/gif

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
-working-fine-but-no-proper-error-message-is-shown-to-user-tp22535689p22536171.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
-contentType-is-working-fine-but-no-proper-error-message-is-shown-to-user-tp22535689p22536107.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

RE: Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread ravindra
contentType is working fine but no proper error message is shown to user Hi, Please help me to show error messages.when we restrict the contentTypes as shown in the link http://struts.apache.org/2.0.11.1/docs/file-upload-interceptor.html The contents are restricted but the error wont be shown to

Fileupload : Restricted contentType is working fine but no proper error message is shown to user

2009-03-16 Thread sajidbigler
/ComposeMMS.jsp /pages/ComposeMMS.jsp /pages/upload_success.jsp Thanks, Sajid -- View this message in context: http://www.nabble.com/Fileupload-%3A-Restricted-contentType-is-working-fine-but-no-proper-error-message-is-shown-to-user

having problem in displaying the error message in order.

2009-01-26 Thread Naaag
-- View this message in context: http://www.nabble.com/having-problem-in-displaying-the-error-message-in-order.-tp21680419p21680419.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Re: dojo is not defined error message in firefox console.

2008-10-06 Thread Rubens
: struts2Filter /struts/* If the request to your struts 2 dojo javascript files do not go thru the Struts 2 filter, you will get 404 error when the browser attempts to retrieve those files. Rubens. -- View this message in context: http://www.nabble.com/dojo-is-not-defined-error-message-in

RE: [S2] client-side validation error message duplication

2008-09-12 Thread Kawczynski, David
--- On Fri, 9/12/08, Kawczynski, David wrote: > I'm using struts 2.1.2, and the xhtml theme to render a > form. When client-side validaiton fails, an error message > is placed above the bad input fields. > Subsequent submission attempts result in new error messages > being ADDE

Re: [S2] client-side validation error message duplication

2008-09-12 Thread Pascal Lalonde
me to render a form. When client-side validaiton fails, an error message is placed above the bad input fields. Subsequent submission attempts result in new error messages being ADDED to the UI, but the old messages are never removed. I need to clear out previous submission attempt's error messa

Re: [S2] client-side validation error message duplication

2008-09-12 Thread Dave Newton
--- On Fri, 9/12/08, Kawczynski, David wrote: > I'm using struts 2.1.2, and the xhtml theme to render a > form. When client-side validaiton fails, an error message > is placed above the bad input fields. > Subsequent submission attempts result in new error messages > being ADDE

[S2] client-side validation error message duplication

2008-09-12 Thread Kawczynski, David
I'm using struts 2.1.2, and the xhtml theme to render a form. When client-side validaiton fails, an error message is placed above the bad input fields. Subsequent submission attempts result in new error messages being ADDED to the UI, but the old messages are never removed. I need to clea

Re: Help: Getting Error Message "Not able to load configuration for specified action"

2008-09-04 Thread Dave Newton
Could you not put ">" characters in front of your response? It makes it very difficult to read and reply to. --- On Thu, 9/4/08, krishnan.1000 wrote: > [It still doesn't work, and there are no errors on startup.] You'll have to provide further information then. After adding the appropriate DOCT

Re: Help: Getting Error Message "Not able to load configuration for specified action"

2008-09-04 Thread krishnan.1000
se >>> the error or not. >> I found this on some blog posting. Removing this did >> not make a difference. > > In general I don't recommend adding random configuration if they're not > being added for a reason. If you're not using Codebehind/etc. you sho

Re: Help: Getting Error Message "Not able to load configuration for specified action"

2008-09-04 Thread Dave Newton
not being added for a reason. If you're not using Codebehind/etc. you should also remove the plugin; IIRC it's an error to use it without an "actionPackages" init-param, although the parameter may be blank. >>> I am getting the error message No configuration >>>

Re: Help: Getting Error Message "Not able to load configuration for specified action"

2008-09-04 Thread krishnan.1000
r not. > > I found this on some blog posting. Removing this did not make a > difference. > >> loginSuccess > > This should be type="redirectAction" if you're redirecting to an action. > > I changed this. Thanks for noticing my typo. Since the page was not &g

Re: Help: Getting Error Message "Not able to load configuration for specified action"

2008-09-04 Thread Dave Newton
ial.web.action > If you're not using the Codebehind/etc. capabilities then you probably don't want this in your web.xml--I don't know off the top of my head if that would cause the error or not. > loginSuccess This should be type="redirectAction" if you're re

Help: Getting Error Message "Not able to load configuration for specified action"

2008-09-04 Thread krishnan.1000
I am getting the error message No configuration found for the specified action": 'login' in namespace ''. Form action defaulting to 'action' attribute's literal value. Is there anything I am doing wrong? I have read similar posts in the forum and hav

Message Store Interceptor - can not display error message with

2008-08-30 Thread doahh
nd if not it will check the querystring to see if there is a parameter denoting an error such as accountActivated=false. If accountActivated=false then the error page will display an error message. It is done this way because I am using both HDIV and CAS which can't add actionError messages

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Dave Newton
Another important thing was to put "chain" > after "validationWorkflowStack". > > If "chain" is first, it will copy > actionErrors to the chained action, then the validation on > the list() method will fail. > > That gives you the right error m

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Martin Gainty
is transmission. > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Date: Tue, 12 Aug 2008 18:56:23 -0400 > Subject: RE: Best practice for passing success/error message to another > dispatch (struts2)? > > Good catch Pierre. It appeared to be working as is, bu

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Jeremy Conner
as to put "chain" after "validationWorkflowStack". If "chain" is first, it will copy actionErrors to the chained action, then the validation on the list() method will fail. That gives you the right error message, but also bypasses running list()... Anyway, this appears

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Jeremy Conner
be having a [delete] link on each row of the list. You click [delete], it fails because the page was stale, so delegate to the list() dispatch with the error message from delete(). I am asking for a best practice because I can make this work in several ways, none of which seem clean. This seems

Re: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Pierre Thibaudeau
This may be completely incidental to your problem, but, it seems to me that, if your actions are listed in that order, the first one will catch the occurrences of the second one. ("importRole" is a particular case of "*Role".) Shouldn't they be listed in the reverse order? > > Example struts.xm

RE: Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Martin Gainty
any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Date: Tue, 12 Aug 2008 15:05:42 -0400 > Subject: Best practice for passing success/error message to anothe

Best practice for passing success/error message to another dispatch (struts2)?

2008-08-12 Thread Jeremy Conner
I have an action with two dispatch methods. I have a single JSP that renders a list and also have an import file field. On import failure, I want to populate the list with an error message. THE PROBLEM: It looks like validation for the list() method is wiping the errors from the import() method

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread xianwinwin
> -- View this message in context: http://www.nabble.com/%3Cs%3Afielderror--%3Ehow-to-provide-an-understandable-error-message-to-the-enduser--tp18144819p18158441.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread Dave Newton
--- On Fri, 6/27/08, xianwinwin <[EMAIL PROTECTED]> wrote: > removed - so the conversionError is not working. ok, how can > I provide my own errors now? Doesn't your existing validation handle the results of a failed conversion? i.e., the property would be null (or whatever)? Dave ---

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread xianwinwin
ds, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/%3Cs%3Afielderror--%3Ehow-to-provide-an-understandable-error-message-to-the-enduser--tp18144819p18156267.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread Dave Newton
--- On Fri, 6/27/08, xianwinwin <[EMAIL PROTECTED]> wrote: > I'm not sure I fully understand your reply; > I found the interceptor validatoin > > assuming I remove it, as you suggested, what should come > instead and how can I configure the error messages. > newton.dave wrote: >> Among the opt

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread xianwinwin
nwin <[EMAIL PROTECTED]> >> Subject: - how to provide an understandable error >> message to the enduser? >> To: user@struts.apache.org >> Date: Thursday, June 26, 2008, 6:35 PM >> Hi all, >> >> If the end-user input wrong date-type (eg., date fo

Re: - how to provide an understandable error message to the enduser?

2008-06-26 Thread Dave Newton
n <[EMAIL PROTECTED]> > Subject: - how to provide an understandable error message > to the enduser? > To: user@struts.apache.org > Date: Thursday, June 26, 2008, 6:35 PM > Hi all, > > If the end-user input wrong date-type (eg., date format is > incorrect, or for > &#x

- how to provide an understandable error message to the enduser?

2008-06-26 Thread xianwinwin
Hi all, If the end-user input wrong date-type (eg., date format is incorrect, or for 'number of people' he types 'Q') the 'input' is fired and it shows the error message. I do that with the 'return input' and the jsp page (this is ajax-id) looks like th

Re: Overriding and localizing default conversion error message

2008-06-26 Thread Jukka Välimaa
6/08, Jukka Välimaa <[EMAIL PROTECTED]> wrote: > > > From: Jukka Välimaa <[EMAIL PROTECTED]> > > Subject: Overriding and localizing default conversion error message > > To: "Struts Users Mailing List" > > Date: Thursday, June 26, 2008, 8:40 AM > &

Re: Overriding and localizing default conversion error message

2008-06-26 Thread Dave Newton
> > Subject: Overriding and localizing default conversion error message > To: "Struts Users Mailing List" > Date: Thursday, June 26, 2008, 8:40 AM > Hi all, > > Does anybody know of a way to override the default type > conversion error of > Struts 2 in a way t

Overriding and localizing default conversion error message

2008-06-26 Thread Jukka Välimaa
Hi all, Does anybody know of a way to override the default type conversion error of Struts 2 in a way that makes it possible to localize the field name? I've tried using ${getText(fieldName)} and {0] in the overriding message, but they don't seem to work. Jukka

Re: Provide a link from an error message

2008-06-16 Thread Dimitris Mouchritsas
Dimitris Mouchritsas wrote: Hi again, If you've been following my threads a bit you'll see that we're developing an app using struts 1.2.4. I have another question, we'd like to provide a link in some of the error messages. But struts seems to change < to < I know that writing html in the Appl

Provide a link from an error message

2008-06-16 Thread Dimitris Mouchritsas
Hi again, If you've been following my threads a bit you'll see that we're developing an app using struts 1.2.4. I have another question, we'd like to provide a link in some of the error messages. But struts seems to change < to < I know that writing html in the ApplicationResources.properties f

Re: How to change automatic type conversion error message

2008-05-17 Thread Arpan Debroy
ot;invalid.fieldvalue." to do custom > type conversion error. > > Arpan Debroy wrote: > >> In my application "id" attribute is int type of "Group" bean. >> >> In my JSP I have written like that :- >> >> >> >> Now if user puts

Re: How to change automatic type conversion error message

2008-05-16 Thread Alberto A. Flores
quot;Group" bean. In my JSP I have written like that :- Now if user puts a string into this text field, then error message come like that *invalid value for the field group.id But I want to show the error message with only "id" not "group.id". Is there anybody, wh

How to change automatic type conversion error message

2008-05-15 Thread Arpan Debroy
In my application "id" attribute is int type of "Group" bean. In my JSP I have written like that :- Now if user puts a string into this text field, then error message come like that *invalid value for the field group.id But I want to show the error message with only &quo

ajax upload file - error message [Object] when returning a div.

2008-04-07 Thread xianwinwin
Fox - same error * no error on the javascript [fireBug] -- View this message in context: http://www.nabble.com/ajax-upload-file---error-message--Object--when-returning-a-div.-tp16537519p16537519.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: dojo is not defined error message in firefox console.

2008-03-30 Thread Jeromy Evans
e FireBug to confirm that dojo.js is found. sharath karnati wrote: Hi All, I'm getting below error message for this acrion(http://localhost:7001/hibernate/events/Dojo.action). dojo is not defined dojo.require("dijit.form.Button"); Please find my p

dojo is not defined error message in firefox console.

2008-03-28 Thread sharath karnati
Hi All, I'm getting below error message for this acrion(http://localhost:7001/hibernate/events/Dojo.action). dojo is not defined dojo.require("dijit.form.Button"); Please find my progrm: TooltipDialog demo // Dojo configurati

Re: Struts, Interceptor error message customization

2008-02-16 Thread sarat.pediredla
tionSupport), that you would > get a validation failure rather than a status 500 response. If you're > still experiencing that, post the corresponding error logs and stack > trace. > > L. > > > - &g

Re: Struts, Interceptor error message customization

2008-02-02 Thread Laurie Harper
Mike J. M. wrote: Hello, So I am currently using Struts, including an action that has a fileUpload Interceptor that checks for files that are too large and certain allowable file types. Right now if either of these conditions are met, the system will throw a generic HTTP 500 error up. What I am

Struts, Interceptor error message customization

2008-01-30 Thread Mike J. M.
Hello, So I am currently using Struts, including an action that has a fileUpload Interceptor that checks for files that are too large and certain allowable file types. Right now if either of these conditions are met, the system will throw a generic HTTP 500 error up. What I am wondering is how to

Customizing error message in validator framework

2008-01-08 Thread Kavita Mehta
Hi, I want to access value of property "a" while giving an error message for value of property "b". e.g. my error message should be " For value , value is not in the range ". where both and are different properties, Is there any way that I

  1   2   3   >