> I'm using struts and got issue with their xml validation framework. I
have
> form with some indexed properties where element is just plain String.
And I
> need make validation for it. I tried to use indexedListProperty for this
> case, but it doesn't work and as I read in 'Stru
I'm using struts and got issue with their xml validation framework. I have
form with some indexed properties where element is just plain String. And I
need make validation for it. I tried to use indexedListProperty for this
case, but it doesn't work and as I read in 'Struts in Action' it works
Obviously I am speaking to other users as is the case for me, do not have too
much knowledge of the use of these functions. Not to the Struts
conceptors.;-)Be carreful, double equal sign is good for comparaison,...
Le Mercredi 21 octobre 2015 16h15, Chris a écrit :
Hi,Thank, It works with fieldexpression.
I tried this :
personBean.over21
You must be 21 or older
Be carreful, double egal sign is good for comparaison, but only one egal sign
is an affectation !
= = = = = = = = = = = = = = = = = = = = = = = = = = =
I
ns
to give user to make a choice when agree/disagree or 21 or older. Regards,
chris
Le Mercredi 21 octobre 2015 11h53, Lukasz Lenart <lukaszlen...@apache.org>
a écrit :
2015-10-21 10:41 GMT+02:00 Chris <christal...@yahoo.fr>:
> Struts 2.5 BETA2 / form-xml-validation sa
2015-10-21 12:22 GMT+02:00 Chris :
> Hi,
>
> I don't know what PRs means. :-)
PR means Pull Request on GitHub - a change from some other user
> I already tried "required" with checkbox, but it doesn't work.
>
> personBean.over21
> You must be 21 or
2015-10-21 10:41 GMT+02:00 Chris <christal...@yahoo.fr>:
> Struts 2.5 BETA2 / form-xml-validation sample / boolean validator /
>
> Hello,
> https://github.com/apache/struts-examples/blob/master/form-xml-validation/src/main/webapp/edit.jsp
> The edit.jsp file contains this
Struts 2.5 BETA2 / form-xml-validation sample / boolean validator /
Hello,
https://github.com/apache/struts-examples/blob/master/form-xml-validation/src/main/webapp/edit.jsp
The edit.jsp file contains this line
but the file EditAction-validation.xml doesn't contain a validation
Date: Tue, 17 Feb 2015 21:07:03 +0530
Subject: Re: problem in xml validation
From: yaragallamur...@gmail.com
To: user@struts.apache.org
No dave. It is because in the same Action class i have a validate method.
So in this method if validation fails it is showing inpu jsp with the
errors
Hi,
I have written AddTestAction.class and placed
AddTestAction-validation.xml file in the same package. but the field
validations are not happening. i have written int validators. Instead
showing validation errors the browser is displaying page not found. if i
remove validation xml file
... If you want any help, you need to provide actionable information.
My first guesses are that you're either missing an `input` definition, or
its JSP page isn't where you think it is.
On Tue, Feb 17, 2015 at 10:05 AM, Yaragalla Muralidhar
yaragallamur...@gmail.com wrote:
Hi,
I have
No dave. It is because in the same Action class i have a validate method.
So in this method if validation fails it is showing inpu jsp with the
errors.
*Thanks and Regards,*
Muralidhar Yaragalla.
*http://yaragalla.blogspot.in/ http://yaragalla.blogspot.in/*
On Tue, Feb 17, 2015 at 9:03 PM, Dave
Fix reported in other thread:
http://markmail.org/search/?q=Struts%202%20Examples%20Updated%20list%3Aorg.apache.struts.users%2F#query:Struts%202%20Examples%20Updated%20list%3Aorg.apache.struts.users%2F+page:1+mid:yrlc7rpnqrdyabjb+state:results
El 08/11/2013 01:33 a.m., Lukasz Lenart escribió:
You mean in the source code of those apps?
I have checked the source and looks ok.
2013/10/31 Antonio Sánchez juntandolin...@gmail.com:
Preparable and exclude parameters examples (at least) in:
http://struts.apache.org/release/2.3.x/docs/getting-started.html
param
Preparable and exclude parameters examples (at least) in:
http://struts.apache.org/release/2.3.x/docs/getting-started.html
param name=expression![CDATA[\d{3}-\d{3}-\d{4}]]/param
should be
param name=regex![CDATA[\d{3}-\d{3}-\d{4}]]/param
Documentation:
Please remove link to annotations above from the list:
http://struts.apache.org/development/2.x/xwork-core/apidocs/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.html
El Jueves, 31 de Octubre de 2013 08:27:49 a.m., Antonio Sánchez
escribió:
Preparable and exclude parameters
2013/9/21 Chris christal...@yahoo.fr:
Don't you think , It could be a risk , using xml validation when the file
properties have changed ?
( see also validator type=regex : param name is regex , not expression in
archives )
It was one time change, maybe introduced in not the best way
Hello
Don't you think , It could be a risk , using xml validation when the file
properties have changed ?
( see also validator type=regex : param name is regex , not expression in
archives )
Another example :
Struts 2's XML validation methodology with regex
Hi All,
I have written classname-validation.xml as per tutorial given at Apache site
but it's not working for result name input.
Questions :
1. Do I need to write something in struts.xml for default validator to work ?
Below is my validation xml file :
?xml version=1.0 encoding=UTF-8?
Change dtd to:
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
2012/7/27 Singh, Rajdeep rajdeep.si...@hp.com:
Hi All,
I have written classname-validation.xml
]
Sent: Friday, July 27, 2012 5:55 PM
To: Struts Users Mailing List
Subject: Re: XML Validation not working
Change dtd to:
http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http
/action
/package
/struts
Thanks,
Rajdeep Singh
-Original Message-
From: Łukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: Friday, July 27, 2012 5:55 PM
To: Struts Users Mailing List
Subject: Re: XML Validation not working
Change dtd to:
http
[mailto:davelnew...@gmail.com]
Sent: Friday, July 27, 2012 6:46 PM
To: Struts Users Mailing List
Subject: RE: XML Validation not working
Why are you defining an explicit interceptor ref for the action? The
validation interceptor is already in the default stack, and by explicitly
defining an action
[mailto:lukasz.len...@googlemail.com]
Sent: Friday, June 15, 2012 6:02 PM
To: Struts Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation
Do you use Spring ? If so, action must have scope=prototype
Regards
--
Łukasz
mobile +48 606 323 122 http
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) hai...@fsoft.com.vn:
Yes I am using Spring and also Hibernate.
I am so sorry for replying late. I am using my company's email that I can't
check at home.
Could you show me where I can add scope=prototype, I added it into my
applicationContext.xml, but
: Łukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: Monday, June 18, 2012 1:35 PM
To: Struts Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) hai...@fsoft.com.vn:
Yes I am using Spring and also
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) hai...@fsoft.com.vn:
I use Spring Framework 3.0 M3
hmm... scope=prototype should work, what kind of exception do you get ?
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
To: Struts Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) hai...@fsoft.com.vn:
I use Spring Framework 3.0 M3
hmm... scope=prototype should work, what kind of exception do you get ?
Regards
--
Łukasz
mobile +48
Are you using Struts2 Spring Plugin ?
http://struts.apache.org/2.x/docs/spring-plugin.html
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
-
To
Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation
Are you using Struts2 Spring Plugin ?
http://struts.apache.org/2.x/docs/spring-plugin.html
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference -
Confitura
On Mon, Jun 18, 2012 at 6:07 AM, Nguyen Ngoc Hai (FSU17.BU2)
hai...@fsoft.com.vn wrote:
I use Struts2 Spring Plugin 2.1.6.
You're using Struts 2.1.6 as well?
This makes no sense; that attribute works fine in Spring 3.0.
Probably not related, but I sure wouldn't use an old milestone release
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) hai...@fsoft.com.vn:
I use Struts2 Spring Plugin 2.1.6.
That version was designed to run with Spring 2.5.3 and as specified in
docs [1] it must work, maybe you're messing different versions of
Spring libs ?
[1]
(I keep looking for the up-arrow so I can upvote mailing list answers.)
On Mon, Jun 18, 2012 at 6:41 AM, Łukasz Lenart lukasz.len...@googlemail.com
wrote:
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) hai...@fsoft.com.vn:
I use Struts2 Spring Plugin 2.1.6.
That version was designed to run with
I found the default themes not full featured enough to use out of the box.
My recommendation is write your own theme using xhtml as a starting point.
If you don't want to do that use the xhtml theme as it is the most complete
with it you get limited ability to design a nice form because of all the
Use simple theme and add s:actionerror/ tag to display validation
messages or s:fielderror/ per each field
http://struts.apache.org/2.x/docs/actionerror.html
http://struts.apache.org/2.x/docs/fielderror.html
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG
-mail: hai...@fsoft.com.vn
Cell: 0169.808.9435
-Original Message-
From: Łukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: Friday, June 15, 2012 4:22 PM
To: Struts Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation
Use simple theme
Do you use Spring ? If so, action must have scope=prototype
Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
-
To unsubscribe, e-mail:
Hello,
I have slashes in my Action names, e.g. ModelName/save
What I want to do is to add validation only for the save action. As far
as I understand, I can create a validation file specifically for the
action name, and not for the method to be invoked.
ModelAction-save-validation.xml does
following post cleared my question:
http://www.mail-archive.com/user@struts.apache.org/msg77238.html
thanks.
Am 24.06.2011 12:58, schrieb Markus Demetz:
Hello,
I have slashes in my Action names, e.g. ModelName/save
What I want to do is to add validation only for the save action. As
far as
Hi,I am learning Struts and working on tutorial of form validation with xml file. I think there is something wrong with the example given in Struts site web http://struts.apache.org/2.2.1/docs/form-validation-using-xml.html . Is there someone who success to test this example please ?Thanks
Hi,
Can you put out your ressources files, that will help us to resolve your
problem
B.W
2011/4/22 kiala davy davy_ki...@yahoo.fr
Hi,
I am learning Struts and working on tutorial of form validation with xml
file. I think there is something wrong with the example given in Struts site
web
It'd be easier if you'd post a minimal, non-working example--it'll help us
see what's wrong.
I'm begging you to remove the huge image at the bottom of your emails.
Dave
On Fri, Apr 22, 2011 at 8:44 AM, kiala davy davy_ki...@yahoo.fr wrote:
Hi,
I am learning Struts and working on tutorial of
right !!
2011/4/22 Dave Newton davelnew...@gmail.com
It'd be easier if you'd post a minimal, non-working example--it'll help us
see what's wrong.
I'm begging you to remove the huge image at the bottom of your emails.
Dave
On Fri, Apr 22, 2011 at 8:44 AM, kiala davy davy_ki...@yahoo.fr
Hi,
Name of LoginAction-Validation.xml file name must be
LoginAction-validation.xml; so Validation's first character must be
lowercase.
And you should consider to struts form which theme definition used for
it. Look at the
http://struts.apache.org/2.2.1/docs/struts-2-themes.html
Maybe you could
Hi,
I am creating my first struts2 application with xml based validation.
However, I am not able to get the validation part working i.e. its not
returning the field error message to UI. Please help.
My code looks like this.
*login.jsp*
s:form action=LoginAction method=post
s:textfield
Your struts.xml is missing a package tag -- or did you just not
include it when you pasted?
On Wed, 2011-03-09 at 14:54 -0800, Vivek Bansal wrote:
Hi,
I am creating my first struts2 application with xml based validation.
However, I am not able to get the validation part working i.e. its not
hi
I have a fairly complex set of xml validation rules for a large form, which is
working fine.
I now have to load from db a bean with the same data and validate it before
displaying a page
(the data comes from a different source and could be incomplete).
is it possible to call the same logic
Dear All;
I wnat to validate a String that is similare to 1,102,Y.I was trying to
implement it, but it is not working.
field property=scheduleDateStr depends=requiredif
arg0 key=label.scheduleDateStr /
var
Muhammad Owais wrote:
Dear All;
I wnat to validate a String that is similare to 1,102,Y.I was trying to
implement it, but it is not working.
field property=scheduleDateStr depends=requiredif
arg0 key=label.scheduleDateStr /
var
to write a field validator for c and specifying in
the Action validator to pass that params?
I hope I have been clear.
Thank you.
--
View this message in context:
http://www.nabble.com/xml-validation-tp23537908p23556953.html
Sent from the Struts - User mailing list archive at Nabble.com
I use this successfully.
field name=credential.password
field-validator type=expression
param name=expression
credential.passwordRepeat.toUpperCase().equals(credential.password.toUpperCase())
/param
message key=passwordsNotMatching /
. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Fri, 15 May 2009 06:03:40 -0500
Subject: Re: xml validation
From: stanl...@gmail.com
To: user@struts.apache.org
I use
Hi,
I've got two problems with XML validation :(
- I'm not able to perform an equality check on two parameters. I've got
password and confirmPassword which I try to validate using something like:
validator type=expression
confirmPassword.equals(password
manub wrote:
- I'm not able to perform an equality check on two parameters. I've got
password and confirmPassword which I try to validate using something like:
validator type=expression
confirmPassword.equals(password)
The release notes at
http://cwiki.apache.org/confluence/display/WW/Release+Notes+2.0.12
point to the closed issues for that release:
https://issues.apache.org/struts/secure/ReleaseNote.jspa?projectId=10030styleName=Htmlversion=21870
The issue you are looking for is
There was a know issue with struts 2.0.11.2 that the integrated XWork 2.0.5
jar may cause problems when used in a combination of WebSphere 6.1 runtime
environments with validation configuration via XML file.
Is this fixed with struts 2.0.12?. I do not see any information on the
apache website.
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2008 5:22 AM
To: user@struts.apache.org
Subject: Struts 2.0.12 - XML Validation with Websphere 6.1
There was a know issue with struts 2.0.11.2 that the integrated XWork
2.0.5
jar may cause problems when used in a combination of WebSphere 6.1
+ Spring 2 + JPA + AJAX from:
http://struts.apache.org/2.0.11.1/docs/tutorials.html
Cheers,
Stan
--
View this message in context:
http://www.nabble.com/Struts-2-xml-validation-doesn%27t-work-tp17342109p17342109.html
Sent from the Struts - User mailing list archive at Nabble.com
You'll need to provide more information, like where your validation
files are, their names, the configs of the actions that aren't
validating, etc.
I've never had any issues with XML validation, so I'd first check out
the basics. (I'm also not running on Tomcat 6, which I suppose could
cause
/quickstart/action
Validation is there to prevent creating empty rows in the database, but
doesn't work for some reason. I've also tried changing struts 2 version to
2.0.11.1 with no success.
--
View this message in context:
http://www.nabble.com/Struts-2-xml-validation-doesn%27t-work
!
--
View this message in context:
http://www.nabble.com/Struts-2-xml-validation-doesn%27t-work-tp17342109p17345893.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
stanlick wrote:
I am trying to figure out the validator type=expression and not having
much success. Can someone tell me what is wrong with this?
field name=model.password
field-validator type=requiredstring
message key=requiredstring /
model.password.equals(model.confirmPassword)
message${getText(nomatch)} ${min} and ${max}/message
/validator
--
View this message in context:
http://www.nabble.com/S2-XML-Validation-tf4287832.html#a12206250
Sent from the Struts - User mailing list archive
Hi,
I've been trying to not have my validation fire when I navigate to a form and
populate it with data to be edited. Unfortunately, it still fires. To
clarify, I'm using both xml validation and my action is validateable with a
validate() method. I used the approach from the HelloWorld
/smigmaintenance/SMIGCreation.jsp/result
result name=input/pages/smigmaintenance/SMIGCreation.jsp/result
result
name=reloadNavigationFrame/pages/smigmaintenance/EmptyReloadNavigationTree.jsp/result
/action
I keep having both my validations go off (xml validation of fields and my
validate()) when
/action
I keep having both my validations go off (xml validation of fields and my
validate()) when the action is redirected from the SMIGSelection action.
I was under the impression that using this approach should send an input
result which should not trigger the validation. By the way, if I remove
--- [EMAIL PROTECTED] wrote:
Hi,
I'm using
struts-core-2.0.8 j4 distribution,
struts2-spring-plugin-j4-2.0.6,
and corresponding j4 distribution jars,
I have an action with several methods. I use each
method as an action mapping and I want
to use different
Hi,
I'm using
struts-core-2.0.8 j4 distribution,
struts2-spring-plugin-j4-2.0.6,
and corresponding j4 distribution jars,
I have an action with several methods. I use each method as an action mapping
and I want
to use different validation.xml files for each action mapping.
to
Struts Users Mailing
Subject
List Re: [S2] Cannot make XML
Validation work for
user@struts.apache.org aliased action mapping
List
Subject
user@struts.apache.org Re: [S2] Cannot make XML
Validation work for
aliased action mapping
:[EMAIL PROTECTED]
Envoye : mercredi 20 octobre 2004 19:41
A : Struts Users Mailing List
Objet : Re: Struts - XML - Validation according to a XML Schema
On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
i would like to parse a XML file through Struts AND also
Mailing List
Objet : Re: Struts - XML - Validation according to a XML Schema
On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
i would like to parse a XML file through Struts AND also according to a
XML
schema.
so may question is...what
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is the method to validate a XML file with a XML
Schema before parsing it?
thank you
YR
-
To unsubscribe,
I guess u will have to use some xml parser for this
u can get more info from
www.jdom.org
On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is
On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is the method to validate a XML file with a XML
Schema before parsing it?
Besides needing a
75 matches
Mail list logo