Hi,
the problem of validation through annotations is they are applied every
time the action is called. You can try use method which you call from
your form. For example, if you want to validate only execute method,
write your own method with name validateExecute(). The principle is same
for a
Hi All,
I am trying to user Validation framework with Struts2 but struck at a
point,here are the details.
I am developing a import service which includes various steps like
1) Showing number of import options
2) Showing number of elgible files for the import (Import type selected in
step one)
NorrisEShelton
YIM norrisshelton
From: Dave Newton
To: Struts Users Mailing List
Sent: Friday, August 28, 2009 6:19:45 PM
Subject: Re: [U] Email Validation Issue
Ginn, Timothy D Mr CTR USA TRADOC USAAC wrote:
> I have run into a bump in the road. I am trying to valid
Ginn, Timothy D Mr CTR USA TRADOC USAAC wrote:
I have run into a bump in the road. I am trying to validate a list of
Strings that contain email addresses. I can't seem to get it to check
the emails to be a valid email using the annotation validation.
Could someone please let me know if this
UNCLASSIFIED
I have run into a bump in the road. I am trying to validate a list of
Strings that contain email addresses. I can't seem to get it to check
the emails to be a valid email using the annotation validation.
Could someone please let me know if this is possible or if I am doing
so
m/-S2--Conversion-validation-issue-tp18576772p22862154.html
Sent from the Struts - User mailing list archive at Nabble.com.
--- On Thu, 9/11/08, Gawain Hammond wrote:
> 1.) validation.js was missing in my html, I wasn't
> using which seems to be the only tag that
> generates a src path to it, I was using
> which afaik was my only choice in 2.0.11.1.
> Upgrading to 2.1.2 resolved this.
>
> I had to put this in manua
Right, that has been an interesting romp around in struts.
Jeromy, thanks for pointing me in the right direction and making me
think. I went back to basics, bit the bullet and improved my javascript
jedi abilities by installing firebug. That has really helped.
If this might help anyone else one d
ECTED]
Sent: 10 September 2008 13:00
To: Struts Users Mailing List
Subject: Re: ajax validation issue
Gawain Hammond wrote:
> A really nice solution so far has been to an action tag to populate
> forms, which has worked nicely the rest of the time. I've really liked
> using this
Gawain Hammond wrote:
A really nice solution so far has been to an action tag to populate
forms, which has worked nicely the rest of the time. I've really liked
using this approach to fill drop-downs, like so:
...
list="%{#groupAction.list}" listKey="id" listValue="name"/>
That's a n
[EMAIL PROTECTED]
Sent: 10 September 2008 01:19
To: Struts Users Mailing List
Subject: Re: ajax validation issue
Gawain Hammond wrote:
>
> ...
>
That's a lot of problems, and to work-around each problem you've moved
to a more sophisticated and complicated solution hoping
Gawain Hammond wrote:
...
That's a lot of problems, and to work-around each problem you've moved
to a more sophisticated and complicated solution hoping for the best.
You'll need to get the plain-old-validation working first. If validation
fails, your action's execute method is not invoke
I've started using struts 2.1.2 as I was having some issues after
enabling client side javascript validation on forms (some page requests
hang, and clicking back takes you to the page you're supposed to be on).
I decided to use client side validation to avoid the problems of
populating form
That's my experience too. That's why I wanted to avoid validation
after conversion error on a field.
Is there any interest in adding this functionality? I think that would
be fairly easy to add. If I understood the code correctly, it would be
a matter of extending the DefaultActionValidatorManager
--- On Tue, 7/22/08, Gabriel Belingueres <[EMAIL PROTECTED]> wrote:
> But then again, eliminating the "conversionError"
> interceptor from the stack would prevent conversion
> errors to appear as fieldErrors in the input form,
> but this would force to use the conversion validator
> everywhere a
But then again, eliminating the "conversionError" interceptor from the
stack would prevent conversion errors to appear as fieldErrors in the
input form, but this would force to use the conversion validator
everywhere a non String object is setted by the ParametersInterceptor
to show the error?
Is
> Does this means eliminating the "conversionError" interceptor from the
> default stack?
Yes ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi, I'm using Struts 2.1.2:
I have a validation file like this:
El código de validación es requerido
1
El código de validación debe ser un número
positivo
codigoValidacion is an Integer prop
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
> > This is my xml file. when we run in a local machine that has internet
> > access this works fine.
> >
> >
> > > "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> > "http://ww
I am using jboss-4.0.5-GA
Dave Newton wrote:
--- Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
This is my xml file. when we run in a local machine that has internet
access this works fine.
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
Hmm, AFAICT that's exactly what
--- Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
> This is my xml file. when we run in a local machine that has internet
> access this works fine.
>
>
>"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
> "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
Hmm,
This is my xml file. when we run in a local machine that has internet
access this works fine.
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
Login name is required
Password is required
Dave New
ay, March 26, 2008 8:16 AM
Subject: Struts2 validation issue when internet is not available in the
application server.
> Hi All,
>
> Has any one come across this issue? . we dont have internet in our app
> server and the struts2 validation fails as it cant access
> www.opensymphony.
Is your DTD correct?
As a trivial test I turned off my WiFi and restarted a webapp that uses a
validation configuration file and no issues throught he startup or validation
process.
Dave
--- Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Has any one come across this issue? . we do
Hi All,
Has any one come across this issue? . we dont have internet in our app
server and the struts2 validation fails as it cant access
www.opensymphony.com.
Thanks,
Nuwan.
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Meth
t; validate
>> any data in the action class and set the actionError the error message is
>> displayed along with the user object information. Is there anything I
>> missed why the "user" object information will now show up when XML
>> validation is used? Thanks.
>&g
If if failing to show any data this can only mean the data
is blank (unlikely) or the object is not available on the Value Stack.
If we look at your two use cases:
Case 1.data is posted to your application, the params are set in your
action and your action is invoked. Your code in the action
essage is
displayed along with the user object information. Is there anything I
missed why the "user" object information will now show up when XML
validation is used? Thanks.
--
View this message in context:
http://www.nabble.com/Struts-2-Validation-issue-tp15365657p15365657.html
Thanks, I extended DefaultActionSupport and now it's working
On Feb 3, 2008 12:47 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Martin Castellanos <[EMAIL PROTECTED]> wrote:
> > Oh, it's just a regular bean, doesn't implements or extends anything
>
> That'll be an issue.
>
> The workflow inter
--- Martin Castellanos <[EMAIL PROTECTED]> wrote:
> Oh, it's just a regular bean, doesn't implements or extends anything
That'll be an issue.
The workflow interceptor depends on the ValidationAware interface to decide
if it should modify the result.
Dave
> On Feb 3, 2008 12:32 PM, Dave Newton <
Oh, it's just a regular bean, doesn't implements or extends anything
On Feb 3, 2008 12:32 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Martin Castellanos <[EMAIL PROTECTED]> wrote:
> > Action Class is: com.maca.web.BookAction
> > Validation file is placed next to the class:
> BookAction-save-
--- Martin Castellanos <[EMAIL PROTECTED]> wrote:
> Action Class is: com.maca.web.BookAction
> Validation file is placed next to the class: BookAction-save-validation.xml
> Validation file for the book entity is: Book-validation.xml and it's placed
> next to the Book class
"Signature" means "How i
Action Class is: com.maca.web.BookAction
Validation file is placed next to the class: BookAction-save-validation.xml
Validation file for the book entity is: Book-validation.xml and it's placed
next to the Book class
On Feb 3, 2008 12:20 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Martin Cas
--- Martin Castellanos <[EMAIL PROTECTED]> wrote:
> Hi, I'm trying to use the xml validation, the validation is executing and
> detecting errors, but after the validation the method save gets called
> instead of invoking the input action it's executing the 'success' action.
> I've tried several thi
Hi, I'm trying to use the xml validation, the validation is executing and
detecting errors, but after the validation the method save gets called
instead of invoking the input action it's executing the 'success' action.
I've tried several things but still can't see what's missing, I'm using
Spring a
ing the prepare
> method
>
> We ended up with option 1. I'd be interested to find out if there is
> better solution too.
>
> -Original Message-
> From: Vaibhav Khare [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 10, 2007 10:37 AM
> To: user@struts.apache.o
EMAIL PROTECTED]
Sent: Monday, December 10, 2007 10:37 AM
To: user@struts.apache.org
Subject: Struts Validation issue
Hi,
I am using Struts validation framework in my project. My form becomes
null
whenever I try to do some validation. The validation works fine but the
next
time it comes on the UI, the
t;
>>
>> When I do the validation, this tag fails as the list comes null the
>> second
>> time..
>> Any help is highly appreciated.
>>
>> Thx
>> --
>> View this message in
.
>
> Thx
> --
> View this message in context:
> http://www.nabble.com/Struts-Validation-issue-tp14255159p14255159.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
list comes null the second
time..
Any help is highly appreciated.
Thx
--
View this message in context:
http://www.nabble.com/Struts-Validation-issue-tp14255159p14255159.html
Sent from the Struts - User mailing list archive at Nabble.com
Hope it helps.
field1 == null || field2 != null
field 2 is required when field 1 is not null
-Original Message-
From: j alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 4:28 PM
To: Struts Users Mailing List
Subject: Re: [S2] validation issue
null
field 2 is required when field 1 is not null
-Original Message-
From: j alex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 4:28 PM
To: Struts Users Mailing List
Subject: Re: [S2] validation issue
The fieldexpression validator would handle most dependent c
I) [C] <[EMAIL PROTECTED]> wrote:
>
> Did you look into expression validator?
>
> -Original Message-
> From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 11, 2007 10:28 AM
> To: Struts Users Mailing List
> Subject: [S2] validation
Did you look into expression validator?
-Original Message-
From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 10:28 AM
To: Struts Users Mailing List
Subject: [S2] validation issue
Hi all!
I´m trying to validate two fields that depends on another
In Struts2 there are no forms...
Yes, no forms.
I think there is an interceptor interface called ValidationAware and
there it can be the cue, but I´m not sure and I suppose there should
be another easier way of doing what I want...
Jorge Martín Cuervo escribió:
sorry, i have no experience wit
sorry, i have no experience with struts2.
I only use classic struts:
http://struts.apache.org/1.3.8/faqs/validator.html
Maybe you can create your own validwhen validator rule in struts2. I
integrated commons validator in my own project and i reused some struts
validwhen code.
Validwhen uses an
Hola Jorge,
I think there is not a "validwhen" validator, either...
Any idea? Thanks.
Jorge Martín Cuervo escribió:
try validwhen validation rule. It exists in struts, maybe exists too in
struts2.
El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió:
Hi all!
I´m trying t
try validwhen validation rule. It exists in struts, maybe exists too in
struts2.
El mar, 11-09-2007 a las 16:27 +0200, Pablo Vázquez Blázquez escribió:
> Hi all!
>
> I´m trying to validate two fields that depends on another field.
>
> What I was doing in S1 is (for field "in"):
>
>
> key="
Hi all!
I´m trying to validate two fields that depends on another field.
What I was doing in S1 is (for field "in"):
key="ErrorMessages.applicationIdRepresent.sameReference"/>
field[0]
editParams
fieldTest[0]
NOTNULL
But now in S2, there is no "r
--- tglenister wrote:
> When I call contact from either page, the validation
> fails (no matter what the input) and the fields are
> cleared out. Basically it likes the doregister
> action but doesn't like the contact action. Does
> anyone have a clue what's going on or where I should
> look?
ether. Thanks in advance.
--
View this message in context:
http://www.nabble.com/Bizarre-validation-issue-tf4404926.html#a12566796
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL
I've tried several things, but the form filed is not being validated. Am I
doing the nested form attribute right in the validator.xml?
josh t <[EMAIL PROTECTED]> wrote: I'm trying to set up a very basic(generic)
validation with struts 1.1 (and tiles) and I can not get it to work. I'm not
getti
-
From: josh t [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 2:58 PM
To: user@struts.apache.org
Subject: Validation Issue - Validation Not Taking Affect
I'm trying to set up a very basic(generic) validation with struts 1.1 (and
tiles) and I can not get it to work. I'm not getting
EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 2:58 PM
To: user@struts.apache.org
Subject: Validation Issue - Validation Not Taking Affect
I'm trying to set up a very basic(generic) validation with struts 1.1 (and
tiles) and I can not get it to work. I'm not getting any errors or any
I'm trying to set up a very basic(generic) validation with struts 1.1 (and
tiles) and I can not get it to work. I'm not getting any errors or anything.
Validation simply doesn't take affect.
I believe I have everything in place. Here is some snippets from my file.
Please let me know if you k
I used the latest version of validator jar (commons-validator-1.2.0.jar). I
had to update struts.jar also and the TLDs from an earlier version to the
latest version for validator to work fine. Now I am getting the following
exception.
[1/30/06 16:51:29:689 EST] 759dc768 InsertTag E
org.apache.st
Mention the JSP as value to your input attribute.
-
Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
This is what's happening:
1) User submit form with invalid data to /Control.do
2) Struts finds action mapping for /Control.do and sees validate="true"
3) Struts call's the form's validate()
4) validate returns false
5) Since validation fails, Struts forwards to the "input" url
6) Go to step 2
The
problem with Validator. Hope it works
for you too.
From: Karthik Manimaran <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: Validation Issue
Date: Sun, 29 Jan 2006 16:42:11 -0500
Hi,
I tried this. Using debug info I can see t
Make your input="something.jsp"
-
What are the most popular cars? Find out at Yahoo! Autos
Yes. Tried the same and it works now.
I got a different problem now though.
The following action results in validation being called recursively
resulting in server crash.
If I remove the input attribute a server exception is thrown. How can I make
a page submit to itself on validat
I am not saying this is your problem, but I've had times where jar files get
seemingly corrupted for no reason. I haven't figured out why but at least
twice a year a JAR file just dies on me. Try reinstalling Struts and copy the
default validation files out and start from there.
Paul
I get the following error:
[1/29/06 17:35:13:701 EST] 4e5645a ValidatorPlug I
org.apache.struts.validator.ValidatorPlugIn Loading validation rules file
from '/WEB-INF/validator-rules.xml'
[1/29/06 17:35:13:721 EST] 4e5645a ServletInstan E SRVE0100E: Did not
realize init() exception thrown by serv
The validation can silently fail if it is not configured correctly. Make sure
you have the plug-in correctly configured with the 2 validation files -- one
for the validators and the other your validation forms.
Also if you upgraded to a new version of Validator your validator
configurati
Hi,
I tried this. Using debug info I can see that the validate method is being
called. But no errors are being returned.
Thanks and regards,
Karthik.
On 1/29/06, Angelo zerr <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Name of form into validation.xml is the path of your Action
> and not the name of yo
Karthik,
I don't think you will be able to access your query parameter when you
post your form. Your action attribute in your html:form tag should just
be /Control
Have you looked at the struts-example application?
-Richard
Karthik Manimaran wrote:
Hi,
I am using the validator framework f
Hi,
Name of form into validation.xml is the path of your Action
and not the name of your Action :
Declare in your AplicationResources
(see example into validator-rules.xml)
errors.required={0} is required.
privacyPrefForm.strFirstName=First name
Regards
Angelo
2006/1/29, Karthik
This is the form definition
The JSP file is as follows:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Errors Not Present
What is the form definition for privacyPrefForm? Where is the tag for
your strFirstName field in your form?
Are you using a debugger at all?
-Richard
Karthik Manimaran wrote:
Hi,
I am using the validator framework for form validation. Validation doesnt
seem to happen and no error messages a
I tried subclassing both ValidatorForm and ValidatorActionForm and it still
doesnt work. Checked the properties too. I even tried using a custom error
message using resource="false"
This is always evaluating to true even if I submit the form with errors.
Errors Not Present
On 1/29/06, Paul Ben
Make sure you're using the right validator class. The ValidatorForm keys off
the formname,
ValidatorActionForm keys off the action name. This has happened to me before.
Also make sure your
properties are named the same.
Paul
__
Do You Yahoo!?
Tir
Hi,
I am using the validator framework for form validation. Validation doesnt
seem to happen and no error messages are displayed. However the form is
getting pre-populated with the user input. Can anyone tell me what I am
missing here?
struts-config.xml
-
...
your records.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, September 16, 2005 4:37 AM
To: user@struts.apache.org
Subject: Re: Validation Issue
Amol Yadwadkar wrote:
> Hi List,
>
> I am using Validation Framework.
>
>
Amol Yadwadkar wrote:
Hi List,
I am using Validation Framework.
property="clientTaxId"
depends="required,mask" >
mask
${taxid}
In the above when mask rule fails it picks up the message against the
errors.invalid key in the p
Hi List,
I am using Validation Framework.
mask
${taxid}
Hi
If you define validate=false in the struts config file then your form will not
be validated when you click either PREV or NEXT buttons. Then if you want to
validate on clicking the NEXT button, you can validate the form by explicitely
calling the validate method like
ActionErrors errors= for
If I understand correctly struts provide both client
side and server side validation so that for someone
reason a validation error got slipped by the client
the server validation would still be able to catch it,
am I right?
thanks
--- Niall Pemberton <[EMAIL PROTECTED]>
wrote:
> The client side J
thank you
--- Niall Pemberton <[EMAIL PROTECTED]>
wrote:
> The client side JavaScript thats generated includes
> a "bCancel" var - which
> if set to "true" causes the validation to be
> skipped. So for your "previous"
> processing, you can just set this variable to "true"
> and submit the form.
>
The client side JavaScript thats generated includes a "bCancel" var - which
if set to "true" causes the validation to be skipped. So for your "previous"
processing, you can just set this variable to "true" and submit the form.
- Original Message -
From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED
thanks that works too.
--- Anthony Hong <[EMAIL PROTECTED]> wrote:
> If you want to set some value befroe generated
> javascript to do validation.
> You can wrtie a your own javascript function and
> then invoke its
> generated function.
>
> eg:
> change jsp page
> action="/logon" method="post">
If you want to set some value befroe generated javascript to do validation.
You can wrtie a your own javascript function and then invoke its
generated function.
eg:
change jsp page
write a new function in your own javascript
function myFunction(myform) {
//set your form value here from hidde
thanks, but I need it to be links to a graphics
instead of button, any alternative?
--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Use the tag for your Previous button.
>
>
> On Wed, 9 Mar 2005 15:30:27 -0800 (PST),
> wo_shi_ni_ba_ba
> <[EMAIL PROTECTED]> wrote:
> > dear folks,
> > I am using
Use the tag for your Previous button.
On Wed, 9 Mar 2005 15:30:27 -0800 (PST), wo_shi_ni_ba_ba
<[EMAIL PROTECTED]> wrote:
> dear folks,
> I am using struts validator framework for both
> clientside and serverside validation. On the jsp
> page, I have a previous and next button, if the user
> cl
dear folks,
I am using struts validator framework for both
clientside and serverside validation. On the jsp
page, I have a previous and next button, if the user
clicks previous I don't want to validate; if the user
clicks next I want to validate. However I can not
modify the javascript function
gt; To: Struts Users Mailing List
> Subject: Struts 1.2.4/Validator 1.1.3 and constant validation
> issue with '&' for constant-value
>
>
> Hello. I'm trying to create a mask for use in password fields
> that accepts:
> - UPPERCASE A-Z
> - lowerca
Hello. I'm trying to create a mask for use in password fields that accepts:
- UPPERCASE A-Z
- lowercase a-z
- Numbers 0-9
- Special Characters !,@,#,$,%,^,&,(,), and *
In the "validation.xml" file I have the following defined.
password
[EMAIL PROTECTED]&*()]*$
...
Thanks, pedro
Couldnt resolve this one! upgraded to struts 1.2.4 and used a reqular
expression to validate instead.
Not quite the method i wanted to take but one which resolved the issue.
Thanks for your contribution
Andy
Pedro Salgado wrote:
Have you checked if you aren't duplicating configurat
Have you checked if you aren't duplicating configurations on more than 1
file? (configFile1, ..., configFileN... N replaces configurations that are
also present (duplicate) in 1).
Are you working with modules?
Is the forward pointing to a correct action? (try putting validate =
false... and
hi,
i have created my own validator class for validating certain fields
which are
beyond the default validation scope (e.g. telephone, postcode, username
already
exists etc.) and have linked it to the validator-rules.xml file.
when the input field is invalid, i do get the appropriate error msg so
89 matches
Mail list logo