How to implement alternate error messages in the Struts validation framework. (Struts 2.0.1.4)

2012-02-28 Thread joann luo
Hello, I am currently using the Struts2 validation framework for my project. I have Struts 2.0.14. I have been trying to find a way to display alternate error message through validator framework. I tried two things. 1. I added a bundle attribute in the following code in the web.xml but

Struts Validation Framework - Focus and Select form field

2010-05-13 Thread somag
Hi, On one of my project we are using struts validation framework...i am using client side validation...requirement is when form field value is invalid its focusing into specific field...at same time i have to select existing value invalid text...like focus() and select() Thanks, -Soma

Struts Validation framework

2008-08-10 Thread Pappula Jagan
frame work. -- View this message in context: http://www.nabble.com/Struts-Validation-framework-tp18920960p18920960.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [OT] Re: Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Laurie Harper
Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, August 13, 2007 5:12 PM To: Struts Users Mailing List Subject: [OT] Re: Calling Struts Validation framework explicitly from WebServices Look at Apache commons-validator... asking the question in many different ways will not generate significa

RE: [OT] Re: Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Prashant Baviskar
inal Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, August 13, 2007 5:12 PM To: Struts Users Mailing List Subject: [OT] Re: Calling Struts Validation framework explicitly from WebServices Look at Apache commons-validator... asking the question in many different ways will

[OT] Re: Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Dave Newton
Look at Apache commons-validator... asking the question in many different ways will not generate significantly different answers. http://commons.apache.org/validator/ d. --- Prashant Baviskar <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have a struts application. > > I am separating business

Calling Struts Validation framework explicitly from WebServices

2007-08-13 Thread Prashant Baviskar
Hi, I have a struts application. I am separating business logic from presentation logic & going to expose this business logic as web-service. I want to explicitly call validation framework of struts from web service. Please Help --Thanks & Regards Prashant Baviskar http://www.pa

Re: [Fwd: Having problems with Struts validation framework]

2006-11-26 Thread Laurie Harper
n. Currently as I know, the action gets called based on the setting. Any help would be much appreciated, regards, robin. ---- Subject: Having problems with Struts validation framework From: robin bajaj <[EMAIL PR

Re: [Fwd: Having problems with Struts validation framework]

2006-11-24 Thread Christopher Schultz
gt; Currently as I know, the action gets called based on the > setting. > > > Any help would be much appreciated, > regards, > robin. > > > > > > > > > > > > ---

[Fwd: Having problems with Struts validation framework]

2006-11-23 Thread robin bajaj
Hello folks, I found a little issue with the action that's being called. Please dis-regard my previous mail reporting this issue. Its resolved now. However, I have another related issue. My loyaltyPAge.jsp has two buttons - Exit and continue. I want the validation to occur only when "Continue" i

Having problems with Struts validation framework

2006-11-23 Thread robin bajaj
Hi Folks, --- problem --- My validation is working but the control doesnt go back to the input page. I want the input page to render again showing the errors. --- Details -- I am using Struts 1.1.x for my webApp. My validation is working fine. (validator-rules.xml and validation-renewal.xml s

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Niall Pemberton
You can also do the same kind of thing that Chris suggests with Struts tags: For your global message, uses the "messagesPresent" tag to detect if there are errors and then output the appropriate message: For your field specific messages, you can use either the or tags to position m

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, > When the user submits the form with more than one fields left blank (or > with incorrect values), I want to show a > general (GLOBAL) message on top of the form saying > > "Following shown mandatory fields were provided with incorrect values

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread robin bajaj
Hi Dave, Thanks for the reply. My Desired Scenario: a) When the user submits the form with more than one fields left blank (or with incorrect values), I want to show a general (GLOBAL) message on top of the form saying "Following shown mandatory fields were provided with incorrect values" b

RE: how to generate generic errors using Struts validation framework

2006-11-01 Thread Dave Newton
From: robin bajaj [mailto:[EMAIL PROTECTED] > I need to know how can I generate GLOBAL validation errors using the > validation.xml file. I know this can be done easily in ActionForm's > java code like: Like what kind of "global" validation errors? Dave --

how to generate generic errors using Struts validation framework

2006-10-31 Thread robin bajaj
Hi Everyone, I am using Struts 1.2 validation framework where I am using the following elements to mention validation rules for specific action properties. But this only allows me to generate validation errors for specific ActionForm property names. I need to

Re: struts validation framework

2005-07-15 Thread Sivakumar Santharam
Joe Germuska Germuska.com> writes: > > At 12:14 PM -0700 7/14/05, Jay Burgess wrote: > >Yes. It's because the leading zero is saying the numbers are > >"octal", so 01-07 > >are valid octals, 08-09 are invalid octals, and 10-12 are valid octals. > > Jay's exactly right here. Your options: >

RE: struts validation framework

2005-07-14 Thread Joe Germuska
s [mailto:[EMAIL PROTECTED] On Behalf Of Sivakumar Santharam Sent: Thursday, July 14, 2005 2:07 PM To: user@struts.apache.org Subject: struts validation framework I am trying to restrict a field input value between 1 and 12. The user has to enter like 01 or 02.. thro 12. The validation fails if I en

RE: struts validation framework

2005-07-14 Thread Jay Burgess
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sivakumar Santharam Sent: Thursday, July 14, 2005 2:07 PM To: user@struts.apache.org Subject: struts validation framework I am trying to restrict a field input value between 1 and 12. The user has to enter like 01 or 02.

struts validation framework

2005-07-14 Thread Sivakumar Santharam
I am trying to restrict a field input value between 1 and 12. The user has to enter like 01 or 02.. thro 12. The validation fails if I enter 08 or 09 and for all other values from 01 thro 07 and 10 thro 12, it works fine. Again the problem is only if I enable javascript validation. Did anybody

Struts validation framework

2005-06-29 Thread Zakir Magdum
I use Map backed ActionForm in which I generate the controls(text, select) dynamically from a map and all the properties are collected in a map in the form. I can add server side validation on these properties. I did not find a way to generate dynamically client side validation. The validation I

Re: Too much javascript code with struts validation framework

2005-02-23 Thread Max Cooper
-0300, Mariano Ayesa wrote: > Hi all! > I´m trying struts validation framework and I would like to know if > there is a way to tell Struts to include only javascripts functions > needed by a particular JSP. I have noticed that Struts adds every rule > configured in validator-rules in eac

Too much javascript code with struts validation framework

2005-02-23 Thread Mariano Ayesa
Hi all! I´m trying struts validation framework and I would like to know if there is a way to tell Struts to include only javascripts functions needed by a particular JSP. I have noticed that Struts adds every rule configured in validator-rules in each generated HTML and this makes pages too much