Struts-Validation and Property file

2004-03-11 Thread Janarthan Sathiamurthy
Hi, I am using Struts validator in my application. I have defined a properties file that has all the error messages for my application. I have mapped this file in my struts-config.xml file. I have created a new rule specific for my application. I have mapped this in my validation-rules.xml.

Re: Struts-Validation and Property file

2004-03-11 Thread Niall Pemberton
(), Resources.getActionError(request, va, field)); } } - Original Message - From: Janarthan Sathiamurthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 11:15 AM Subject: Struts-Validation and Property file Hi, I am using Struts validator in my application. I

RE: Struts Validation + Frames

2003-12-29 Thread Suresh Korvi
GANGAL [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 5:09 AM To: [EMAIL PROTECTED] Subject: Struts Validation + Frames Hi , I have an application with two frames , one at the top and the other the bottom. I am working on the lower frame and has problems in displaying errors after

Re: Struts Validation + Frames

2003-12-29 Thread VENKATESH GANGAL
correctly suresh -Original Message- From: VENKATESH GANGAL [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 5:09 AM To: [EMAIL PROTECTED] Subject: Struts Validation + Frames Hi , I have an application with two frames , one at the top and the other the bottom. I am working

Struts Validation + Frames

2003-12-28 Thread VENKATESH GANGAL
Hi , I have an application with two frames , one at the top and the other the bottom. I am working on the lower frame and has problems in displaying errors after validating the form i.e when I submit only the lower part of the frame. I can see that the validate method is returning an error

RE: Error using Struts Validation on Weblogic 8.1 platform

2003-12-18 Thread rahul.chaudhary
Indeed it was the problem with the path of the DTD Thanks Rahul -Original Message- From: Milon Krejca [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 7:58 PM To: Struts Users Mailing List Subject: Re: Error using Struts Validation on Weblogic 8.1 platform Seems like you do

Re: Error using Struts Validation on Weblogic 8.1 platform

2003-12-17 Thread Milon Krejca
Seems like you do not have DTD configured localy and the server is tryiing to access DTD from web server. See beginning of validation.xml file and look for DTD definition... Milon [EMAIL PROTECTED] wrote: All, The validation doesn't seem to work.Checking the Server logs displays the

Error using Struts Validation on Weblogic 8.1 platform

2003-12-16 Thread rahul.chaudhary
All, The validation doesn't seem to work.Checking the Server logs displays the following stack trace.Any thoughts as to what needs to be done? Thanks Rahul 17 Dec 2003 10:20:01,806 INFO ValidatorPlugIn []: Loading validation rules file from '/WEB-INF/validator-rules.xml' 17 Dec 2003

struts validation and dispatch action

2003-12-15 Thread Sonam Belbase
Hi, I've noticed that since validation is defined in the action mapping, it will apply to all methods of a dispatch action. But what if only one method in the dispatch action requires field X to be populated/selected and another method doesn't care. Is there a way to apply struts validation

RE: struts validation and dispatch action

2003-12-15 Thread Ghanakota, Vishu
PROTECTED] Sent: Monday, December 15, 2003 1:56 PM To: Struts Users Mailing List Subject: struts validation and dispatch action Hi, I've noticed that since validation is defined in the action mapping, it will apply to all methods of a dispatch action. But what if only one method in the dispatch

Re: struts validation and dispatch action

2003-12-15 Thread Joe Germuska
. Is there a way to apply struts validation to only one dispatch action method and not all of them? The easiest thing would be to duplicate the ActionMapping in all respects except for the path and the validate attribute; then have your methods that don't require validation use the new path

RE: struts validation and dispatch action

2003-12-15 Thread Hookom, Jacob
] Sent: Monday, December 15, 2003 4:06 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: struts validation and dispatch action From what I have done before, you can sub-class the action and override the validate to do a conditional validation, this way you still get to keep

RE : struts validation and dispatch action

2003-12-15 Thread Menard . Jean-Francois
H1N1J4 - Étage RC -Message d'origine- De : Ghanakota, Vishu [mailto:[EMAIL PROTECTED] Envoyé : lundi 15 décembre 2003 17:06 À : 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Objet : RE: struts validation and dispatch action From what I have done before, you can sub-class

Re: struts validation and dispatch action

2003-12-15 Thread Sonam Belbase
to be populated/selected and another method doesn't care. Is there a way to apply struts validation to only one dispatch action method and not all of them? The easiest thing would be to duplicate the ActionMapping in all respects except for the path and the validate attribute; then have your

Re: struts validation and dispatch action

2003-12-15 Thread Joe Germuska
in the dispatch action requires field X to be populated/selected and another method doesn't care. Is there a way to apply struts validation to only one dispatch action method and not all of them? The easiest thing would be to duplicate the ActionMapping in all respects except for the path

Problem with Struts-Validation : datePattern and JavaScript

2003-12-08 Thread Rouven Gehm
I want to know if someone has updated the javascript code for the date validation in the validate-rules.xml ? Because the datePattern option, doesn't work correctly, only datePatternStrict will be validated. I have searched the user mailing list, for this problem, but have not found any

Struts Validation

2003-11-19 Thread Luciano Campi
Hi all, I need to validate a e-mail CC form field like a [EMAIL PROTECTED] , [EMAIL PROTECTED] I would you like to known how to create a new Validator class that validate multiples e-mail address(like a CC and BCC address) and uses org.apache.commons.validator.EmailValidator to validate a

RE: Struts Validation

2003-11-19 Thread Ramadoss Chinnakuzhandai
to some extend, -Ram -Original Message- From: Luciano Campi [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 7:55 AM To: Struts Users Mailing List Subject: Struts Validation Hi all, I need to validate a e-mail CC form field like a [EMAIL PROTECTED] , [EMAIL PROTECTED] I

Struts-Validation Error

2003-11-11 Thread Ramadoss Chinnakuzhandai
Hi, I need to accept .(dot) as part of input value. While trying to test it does not accept . in the input entry. Any idea how to make it accept . character in the validation pattern. following is the validation pattern for that field in validation.xml form name=AvailabilityForm

RE: Struts-Validation Error

2003-11-11 Thread Ramadoss Chinnakuzhandai
PM To: [EMAIL PROTECTED] Subject: Struts-Validation Error Hi, I need to accept .(dot) as part of input value. While trying to test it does not accept . in the input entry. Any idea how to make it accept . character in the validation pattern. following is the validation pattern

RE: Struts-Validation

2003-11-06 Thread Ramadoss Chinnakuzhandai
Subject: Re: Struts-Validation Ramadoss Chinnakuzhandai wrote: yesI should restrict the user to enter both fields i.e they should enter anyone of the fields and not both. These option I think is to use the validate method in your ActionForm and then first call your validation framework

Struts-Validation

2003-11-05 Thread Ramadoss Chinnakuzhandai
Hi, I hv two fields field1 and field2 1. If field1 is null while field2 is empty I should throw error message that anyone of the field is mandatoryI implemented using requiredif and its working fine. 2. when both fields are entered I should throw an error message that enter

RE: Struts-Validation

2003-11-05 Thread Yansheng Lin
: November 5, 2003 1:54 PM To: [EMAIL PROTECTED] Subject: Struts-Validation Hi, I hv two fields field1 and field2 1. If field1 is null while field2 is empty I should throw error message that anyone of the field is mandatoryI implemented using requiredif and its working fine. 2

RE: Struts-Validation

2003-11-05 Thread Ramadoss Chinnakuzhandai
this condition...??? -Ram -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:29 PM To: 'Struts Users Mailing List' Subject: RE: Struts-Validation So you are saying you need something like notRequireIf for field2, right? That's

RE: Struts-Validation

2003-11-05 Thread Yansheng Lin
To: Struts Users Mailing List Subject: RE: Struts-Validation yesI should restrict the user to enter both fields i.e they should enter anyone of the fields and not both. That's a self-contradiction if you want to use them at the same time. You will need to write your own validation for that. you

Re: Struts-Validation

2003-11-05 Thread Rick Reumann
Ramadoss Chinnakuzhandai wrote: yesI should restrict the user to enter both fields i.e they should enter anyone of the fields and not both. These option I think is to use the validate method in your ActionForm and then first call your validation framework and then do the check for the

RE: struts validation

2003-08-05 Thread Harald Tomio
-Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Montag, 04. August 2003 17:01 To: 'Struts Users Mailing List' Subject: RE: struts validation the validators i used are required, minlength, maxlength etc... but do we have problem in displaying the error

struts validation

2003-08-04 Thread Laksh Narasimhan
Hi *, struts validation using server side validation works fine for me... it displays the error message in the same window where we have included the html:error/ ... but i need the error message to be displayed in the javascript error window... even after including these two lines it puts

RE: struts validation

2003-08-04 Thread Alex Shneyderman
Is your browser JavaScript enabled? What validators are you using? Some of them do not have JavaScript countrparts. -Original Message- From: Laksh Narasimhan [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: struts validation Hi

RE: struts validation

2003-08-04 Thread Laksh Narasimhan
Mailing List' [EMAIL PROTECTED] Subject: RE: struts validation Date: Mon, 4 Aug 2003 10:41:36 -0400 Is your browser JavaScript enabled? What validators are you using? Some of them do not have JavaScript countrparts. -Original Message- From: Laksh Narasimhan [mailto:[EMAIL PROTECTED

RE: struts validation

2003-08-04 Thread Alex Shneyderman
the validators i used are required, minlength, maxlength etc... but do we have problem in displaying the error messages in java script window bcos of validators??? I do not have that problem I do not know why you do. Check to see if the JavaScript even gets to your browser. Ceck your

Struts Validation Question

2003-06-03 Thread Ranj Nadarajah
I've been trying to make validator work with our application. However, I've not been very successful. Here is what I did. Please let me know if I missed anything. I've created a form with firstName and LastName fields. The validator should see if that the form is not empty. Howver, when I

RE: Struts Validation Question

2003-06-03 Thread Bailey, Shane C.
Message- From: Ranj Nadarajah [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 10:03 AM To: [EMAIL PROTECTED] Subject: Struts Validation Question I've been trying to make validator work with our application. However, I've not been very successful. Here is what I did. Please let me know

Re: Struts Validation Question

2003-06-03 Thread Shashank Dixit
: Struts Validation Question What does your action mapping look like in the struts-config? Also, I believe, by the time you are in the action validation will already be performed (once you have it working properly). So you don't have a call to validate() or anything to do with validation

struts validation question

2003-03-04 Thread Ashish Kulkarni
Hi, I have 3 questiona about handling validation in struts 1.1b3, using dyna form and using validation.xml Q1, Suppose i have to validate date for 3 different format depending upon a value set in sessio, so if the value of fomrat is '1' date format is dd/MM/yy, if '2' date format is MM/dd/yy and

Struts validation error not returning to action's input?

2003-02-25 Thread Dave Newton
Hola, I must be a dope (I hope, at least, otherwise I'm screwed! :) The validation is, in fact, working (log statements in action class), but on a validation error I don't see the input page. When there are no validation issues the Action properly forwards to the success forward. To get to the

Re: Struts validation error not returning to action's input?

2003-02-25 Thread Dave Newton
On 25 Feb 2003 Dave The Dope Newton wrote: [ Wh, it doesn't go back to the action's input param page ] [ when the DynaValidatorActionForm has a validation issue ] Well, that would be because I had the following in my struts-config.xml: controller set-property property=inputForward

Role Based Struts Validation

2003-01-29 Thread PILGRIM, Peter, FM
My XML skills are brain dead. I just had a thought that my role base struts validation will not work as intended. I intended to customise FieldChecks with validators that checks against a role attribute in the action form. I realise that the Validator does not quite work that way. Normally when

Re: Role Based Struts Validation

2003-01-29 Thread V. Cekvenich
I can't help on XML, but if it does not work, you are not sunk since ... stating the obvious ... of course you can implement the form Beans validate method in which you can write ... Java. .V PILGRIM, Peter, FM wrote: My XML skills are brain dead. I just had a thought that my role base struts

Re: Role Based Struts Validation

2003-01-29 Thread Evan Schnell
V. Cekvenich wrote: I can't help on XML, but if it does not work, you are not sunk since ... stating the obvious ... of course you can implement the form Beans validate method in which you can write ... Java. This is just an *idea*. It has fairly sizable drawbacks but I have used the same

Re: Role Based Struts Validation

2003-01-29 Thread Evan Schnell
PILGRIM, Peter, FM wrote: Actually I think that my understanding of the validator is flawed. By default the validator will not check a field unless you specify the required. The way that requiredif is implemented might be clue to what I need to do. The required and requiredIf rules

RE: Role Based Struts Validation

2003-01-29 Thread PILGRIM, Peter, FM
-Original Message- From: Evan Schnell [mailto:[EMAIL PROTECTED]] PILGRIM, Peter, FM wrote: ---- Actually I think that my understanding of the validator is flawed. By default the validator will not check a field unless you specify the required. The way that requiredif is

RE: Role Based Struts Validation

2003-01-29 Thread David Graham
In fact my client has made a major decision, to do a lot of validation using JavaScript using a massive library with minimum server-side validation if they can help it. Does your client realize the security problems associated with that decision? It's trivial to write a program that posts data

Re: Role Based Struts Validation

2003-01-29 Thread Peter A. Pilgrim
David Graham wrote: In fact my client has made a major decision, to do a lot of validation using JavaScript using a massive library with minimum server-side validation if they can help it. Does your client realize the security problems associated with that decision? It's trivial to write a

Re: Role Based Struts Validation

2003-01-29 Thread Tony Baity
Peter, I have also been involved with a cutomer that wants client side field validation and even page sections that magically appear when certain radio buttons and check boxes are clicked. These are people that have been using an Oracle forms based solution for many years and have become

struts validation and DispatchAction

2002-11-05 Thread Darren Hill
So. My DispatchAction works great .. now I want to do validation ( on the ADD action ), but because I need to turn validation 'on', it applies to ALL my actions with the DispatchAction. So .. create creates a 'clean' form, which of course fails in validation. I suppose, for the 'view' action I

RE: Struts Validation Required and Float

2002-10-02 Thread Padma Ginnaram
Check if your float validator depends on required. Removing this dependency should solve your problem. -Padma -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 8:24 PM To: [EMAIL PROTECTED] Subject: Struts Validation Required

Struts Validation Required and Float

2002-10-01 Thread Pete . Gabriel
When entering validations on a form in validation.xml, If you have a fieldA with depends=required and FieldB with depends=float (versus depends=float,required) , if both those validation errors occur, the validator will display only the depends=required validation error (FieldA is required)

Re: Struts Validation Required and Float

2002-10-01 Thread David Graham
This has come up before as a bug. I don't believe you can but there is talk of changing the validator to support that. Dave From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts Validation Required and Float Date: Tue, 1 Oct 2002

Struts Validation Framework

2002-08-01 Thread Andrew J. Amwoza
I have built a few test websites that utilize Struts 1.1b and the Validator Framework and I am finding that I have to work around some key issues. First off, I noticed that required and type validations work according to the examples but in many cases I have dependent validations. To solve this

Re: Struts Validation Framework

2002-08-01 Thread Joe Germuska
I really like the foundation of the Validator framework but I don't see some basic features that I constantly require. Hm. Sounds like a golden opportunity for you to increase your commitment to open source software? Validator is part of the Commons project at Jakarta. Odds are good that

Re: Struts Validation - Stop on fail?

2002-07-08 Thread Peter Onthrops
solidSubject: Struts Validation - Stop on fail?BRFrom: Andrej Sobkowski [EMAIL PROTECTED]BR===BRHello,BRBRI've been using the Struts Validator on a couple of projects with no pbs butBRI'm now stuck with a (probably easy-to-solve) issue. I have a super-basicBRbean with 3 properties: name, density

Re: Struts Validation - Stop on fail?

2002-07-05 Thread @Basebeans.com
Subject: Re: Struts Validation - Stop on fail? From: Andrej Sobkowski [EMAIL PROTECTED] === Hello, Padma Ginnaram replied to me directly (thanks!) so here is the message in case someone was having a similar problem: --- From Padma's message [...] If a validator depends on other validators

Struts Validation - Stop on fail?

2002-07-04 Thread @Basebeans.com
Subject: Struts Validation - Stop on fail? From: Andrej Sobkowski [EMAIL PROTECTED] === Hello, I've been using the Struts Validator on a couple of projects with no pbs but I'm now stuck with a (probably easy-to-solve) issue. I have a super-basic bean with 3 properties: name, density

Just how cooked is Struts Validation at this point?

2002-07-03 Thread James Turner
How ready to use do people consider the validation portion of Struts right now? I'm basing this question on having spent several hours trying to get it installed, and discovering that: 1) It required commons-validator 2) commons-validator has never been made available as a binary 3) Building

RE: Just how cooked is Struts Validation at this point?

2002-07-03 Thread Kevin Henrikson
happier camper. -kevin -Original Message- From: James Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: Just how cooked is Struts Validation at this point? How ready to use do people consider the validation portion of Struts

Re: Just how cooked is Struts Validation at this point?

2002-07-03 Thread Chuck Cavaness
I've used it in 1.1b quite a bit and find it very stable and have used it in more than just trivial examples. I also know or several large projects using it, both within Struts and in the business components. No issues. I would recommend using it. For what that's worth, Chuck At 06:30 PM

Re: struts validation and multiple message resources files

2002-06-14 Thread William W
Is there a solution for this problem ? Thanks, William. From: Alok Ghosh [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: struts validation and multiple message resources files Date: Tue, 11 Jun 2002 13:24:04 -0400 Hi, I am running the new

struts validation and multiple message resources files

2002-06-11 Thread Alok Ghosh
Hi, I am running the new struts validation that uses the validation.xml file. In my validation.xml file i have all the forms in there and the validation for every type of textbox of the different forms. My problem is the caption name of each text box are already in sepearte

Struts Validation question

2001-10-31 Thread Sandeep Takhar
when using the struts validator, what happens if you define a validation for a field and the field does not exist? Does it skip the field (this is what I would like). - Sandeep __ Do You Yahoo!? Make a great connection at Yahoo! Personals.

Re: Struts Validation question

2001-10-31 Thread David Winterfeldt
It doesn't skip it just like if you define an html:text on your JSP and the field doesn't exist it causes an exception. I don't think it stops validating though since all exceptions are caught. David --- Sandeep Takhar [EMAIL PROTECTED] wrote: when using the struts validator, what happens if

JavaScript with html:errors - new STRUTS validation

2001-09-30 Thread Adam Grohs
Agent or similar device that is much more user friendly. Additionally this approach only requires maintenance of one set of error messages across both the front end (JavaScript) and the backend (STRUTS) validation which all resides in the Application Resource file for easy maintenance by any

JavaScript with html:errors - new STRUTS validation

2001-09-30 Thread Adam Grohs
dged "Agent" orsimilar device that is much more user friendly.Additionally this approach only requires maintenance of one set of errormessages across both the front end (JavaScript) and the backend (STRUTS)validation which all resides in the Application Resource file for easymaintenance