lukasz.lenart,
Thanks for your response. I am using Struts 2.1.8, Java 1.6 and tomcat 7.
On Mon, Jun 18, 2012 at 12:02 AM, Łukasz Lenart
lukasz.len...@googlemail.com wrote:
2012/6/17 Paul Mefford paulmeff...@gmail.com:
Can anyone give me some advice on how to fix the .xml loader so it
2012/6/17 Paul Mefford paulmeff...@gmail.com:
Can anyone give me some advice on how to fix the .xml loader so it finds a
xml file using the wildcard in sturts.xml? Or has anyone done this a
different way with validation?
Struts 2 version ? App Sever ?
You can implement your own logic how to
this message in context:
http://www.nabble.com/struts2-validation-help-please-tp22068361p22068361.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
I'm sure I've just got some little something not set up right or out of
place, but I can't seem to get validation working.
I have a class com.allureglobal.harvey.controller.CustomerController
that extends ActionSupport. There is a corresponding
CustomerController-validation.xml file located
--- On Wed, 10/15/08, David C. Hicks wrote:
[...] Validation is on my interceptor stack.
Is workflow? Do you know that *validation* doesn't occur, or that it just
doesn't return to input on validation errors?
Without any further information it'll be tough to help.
Dave
I can't really tell if validation is even being called.
If by is workflow you mean is it in the interceptor stack, Yes. It is
in the stack immediately following validation.
I'll be happy to provide whatever information you need. I would be
considered a newbie. So, I'm not really sure what
--- On Wed, 10/15/08, David C. Hicks wrote:
I can't really tell if validation is even being called.
If by is workflow you mean is it in the interceptor stack,
Yes. It is in the stack immediately following validation.
I'll be happy to provide whatever information you need.
I would be
We are not overriding the validate() method of ActionSupport. I
double-checked to be sure of that.
CustomerController (is an extension of a couple of base classes but
eventually extends ActionSupport):
public class CustomerController extends AbstractCrudControllerCustomer {
private static
Oh geez. All of the indentation got waxed when I sent this. Sorry about
that. It looked a lot neater when I composed it.
David C. Hicks wrote:
We are not overriding the validate() method of ActionSupport. I
double-checked to be sure of that.
CustomerController (is an extension of a couple of
: Validation Help?
To: Struts Users Mailing List user@struts.apache.org
Date: Wednesday, October 15, 2008, 5:42 PM
We are not overriding the validate() method of
ActionSupport. I
double-checked to be sure of that.
CustomerController (is an extension of a couple of base
classes but
eventually
We are using the simple theme primarily, but even if the page won't
report errors shouldn't the action fail if it is validating and I give
it bad data on purpose? We believe it's simply not executing the
validation. Our main layout has a s:actionerror/ tag that should get
any reported
--- On Wed, 10/15/08, David C. Hicks wrote:
We are using the simple theme primarily, but even if the page won't
report errors shouldn't the action fail if it is validating and I give
it bad data on purpose?
Yes, but you never actually said specifically what was or wasn't happening, so
I had
Hey Dave,
Sorry - I didn't mean to be deliberately vague. I'm kind of stumbling
through this to help the team. The real Struts genius of the bunch is
wrapped up with other problems. I was just trying to help.
If by zero-config you're referring to our network, that would be No.
We're on
Don't mistake my curtness for disgust ;)
--- On Wed, 10/15/08, David C. Hicks wrote:
If by zero-config you're referring to our network, that would be
No. We're on a fairly standard DHCP/DNS local network here
at the office. If you mean something else, then I'm afraid I'm
blonde again. :-)
can someone help me with this please. thanks.
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: validation help
Date: Thu, 08 Feb 2007 10:01:01 -0500
Have 2 radio buttons of ID and Name and an input field to enter
[EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
Subject: validation help
Date: Thu, 08 Feb 2007 10:01:01 -0500
Have 2 radio buttons of ID and Name and an input field to enter criteria.
When the ID is selected the criteria the user entered
Subject: validation help
Date: Thu, 08 Feb 2007 10:01:01 -0500
Have 2 radio buttons of ID and Name and an input field to enter criteria.
When the ID is selected the criteria the user entered should be numeric.
Should display the user with the appropriate message that only int
value
Have 2 radio buttons of ID and Name and an input field to enter criteria.
When the ID is selected the criteria the user entered should be numeric.
Should display the user with the appropriate message that only int
value is allowed.
When the Name is selected the criteria the user entered
Hi,
I am having some trouble with struts validation. Here's the case:
I have multiple actions corresponding to multiple pages.
I have only one struts form for all these actions.
I would appreciate it if someone could tell me how to set up my
validation. I am using ValidatorActionForm for my
Your form name in validation.xml should be InputDataForm (no leading slash),
not /ClientA.
-Original Message-
From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 1:16 PM
To: Struts Users Mailing List
Subject: Validation help: One struts form, multiple actions
3:26 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help: One struts form, multiple actions
Your form name in validation.xml should be InputDataForm (no leading
slash),
not /ClientA.
-Original Message-
From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08
My bad. Missed that. How is it blowing out?
Q
-Original Message-
From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 1:27 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Validation help: One struts form, multiple actions
I intentionally
.
-Original Message-
From: Quinn Stone [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 4:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help: One struts form, multiple actions
My bad. Missed that. How is it blowing out?
Q
-Original Message-
From: Chaudhary
Now that I think about it, my question is just this:
Is there a way to selectively validate fields in a struts form?
Harsh.
-Original Message-
From: Quinn Stone [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 4:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help
Chaudhary, Harsh wrote:
Now that I think about it, my question is just this:
Is there a way to selectively validate fields in a struts form?
Yes, only put the fields you want into the validation rule.
formset
form name=/ClientA
field property=clientaFirstName
question is just this:
Is there a way to selectively validate fields in a struts form?
Harsh.
-Original Message-
From: Quinn Stone [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 4:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help: One struts form, multiple
Benedict [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 5:27 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Validation help: One struts form, multiple actions
Chaudhary,
You need a custom validation key for each step in the process.
Override the form's validate() and create
:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 5:27 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Validation help: One struts form, multiple actions
Chaudhary,
You need a custom validation key for each step in the process.
Override the form's validate() and create a key
Hi,
I am using struts 1.1
I have two textboxes (username, password).
My requirements is
- I need to display a standard error message when both the fields are empty
or when either of the field is empty.
- I need to display a different error message when both the the fields are
filled but
Use Validate method instead Validator framework
On 4/24/06, Dinesh Mehra [EMAIL PROTECTED] wrote:
Hi,
I am using struts 1.1
I have two textboxes (username, password).
My requirements is
- I need to display a standard error message when both the fields are
empty
or when either of the
validWhen.
Harsh.
-Original Message-
From: Dinesh Mehra [mailto:[EMAIL PROTECTED]
Sent: Monday, April 24, 2006 1:47 PM
To: user@struts.apache.org
Subject: Validation help required
Hi,
I am using struts 1.1
I have two textboxes (username, password).
My requirements is
- I need to display
I have a question. I have decided to use the vaildation framework to do
the validation in my web app. I have created a validation.xml file, and
a vaildator-rules.xml file. I noticed in books about struts that I have
there is a properties file associated with the vaildation. Am I right?
If
the properties file is that u r using right now... I mean u can use it in
order to call value keys.
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
No creo en el destino pues no me gusta tener la idea de controlar mi vida
A good book about Struts and Validator framework is Jakarta Struts Live -
Rick Hightower
U can get it in www.theserverside.com http://www.theserverside.com
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
No creo en el destino pues no me gusta tener la idea de controlar mi vida
http://www.objectsource.com/Struts_Survival_Guide.pdf, Chapter 5.
Paul Goepfert wrote:
I have created a web app using struts and velocity. I am going to add
vaildation on the struts end of the app. I am still learning struts.
The only thing I have been able to do is use struts to move
I have created a web app using struts and velocity. I am going to add
vaildation on the struts end of the app. I am still learning struts.
The only thing I have been able to do is use struts to move between
pages by way of buttons.Now I want to add validation to my web app.
I have no
Paul Goepfert wrote:
I have created a web app using struts and velocity. I am going to add
vaildation on the struts end of the app. I am still learning struts.
The only thing I have been able to do is use struts to move between
pages by way of buttons.Now I want to add validation to my
Hello,
I am using the struts framework for a project, and I am seeking advice on the
following situation. To preface where I am, we have used server side validation
(validation.xml) throughout the full project and all is good. I understand
simple field validation and the attributes of the
Hello,
I am using the struts framework for a project, and I am seeking advice on the
following situation. To preface where I am, we have used server side validation
(validation.xml) throughout the full project and all is good. I understand
simple field validation and the attributes of the
use dynamic form with dynamic array inside.
Scott Purcell [EMAIL PROTECTED] wrote:Hello,
I am using the struts framework for a project, and I am seeking advice on the
following situation. To preface where I am, we have used server side validation
(validation.xml) throughout the full project
@struts.apache.org
To
user@struts.apache.org
cc
Subject
Validation Help On Large Dynamic List
Hello,
I am using the struts framework for a project, and I am seeking advice on
the following situation. To preface where I am, we have used server side
validation (validation.xml) throughout
I am working on a project where I have the need to validate a checkbox being
'on' . It is the usual accept our license, or you cannot enter site. In the jsp
page we are using this:
trtd colspan=4brhtml:checkbox property=terms value=0/
And in my bean I have a getter and setter with a boolean
Validation Help Needed
I am working on a project where I have the need to validate a checkbox being
'on' . It is the usual accept our license, or you cannot enter site. In the
jsp page we are using this:
trtd colspan=4brhtml:checkbox property=terms value=0/
And in my bean I have a getter and setter
(No luck on commons-user; trying again here.)
I'm trying to validate a password such that it cannot contain the userId.
Is this something I can do in validation.xml?
I'm currently using a mask in validation.xml:
field property=password depends=required,mask
arg0 key=label.password/
This is untested (!), but adapted from a working twofields validation
method (used to make sure password1 matches password2, etc.), so it
shouldn't be far off the mark.
validation.xml:
!-- nothing real unusual here --
field property=userID depends=required,minlength,maxlength
To ignore case, just convert the two Strings to uppercase before you
test if one contains the other.
Hope I'm understanding the problem correctly . . .
Erik
Erik Weber wrote:
This is untested (!), but adapted from a working twofields
validation method (used to make sure password1 matches
We have a need to accept dates entered on a form in either mm/dd/ or
mm-dd- formats, depending on how the user keys it in. (Not our choice to
support both formats.)
We'd like to use the Struts Validator to validate the dates with the validateDate()
method. We haven't been able to
47 matches
Mail list logo