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.
(), 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
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
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
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
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
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
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
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
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
. 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
]
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
-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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
63 matches
Mail list logo