Hi,
what is the clear difference between these 3 approaches?
Annotations and XML allow you to only use defined validators, with
validate() method you can do anything you want, base your validation
on more complicated business rules.
and how can i implement client side validations in struts
Narayana S wrote:
Hi,
as per my understanding, we can implement validations in struts 2 in the
following ways...
1. overriding validate() method in Action class
Use the validate() method for complex validation that cannot be
implement anywhere else. You want to avoid duplicating
I can implement custom validation using validate(), but I've around 30
transactional forms with this type of requirements.
Maybe it will be better if you implement your own validator for thoese
30 forms? I think it will be soft option then very compilcated
expression above ;-)
Regards
--
Newton [EMAIL PROTECTED]
To: Struts Users Mailing List
user@struts.apache.org
Sent: Wednesday, June 25, 2008 3:37:38 PM
Subject: Re: validation problem
Whoops, as the other reply said, it's the
s:fielderror... tag [1], not s:actionerror.
Dave
[1] http://struts.apache.org/2.x/docs/fielderror.html
--- On Wed, 6/25/08, Anshu Dhamija [EMAIL PROTECTED] wrote:
i am facing problem in performing validation through
xml actually i want to display message at the top of
my form instaed of at field level
can anyone please help me
The validation messages are placed in the form by the S2 form
Anshu Dhamija wrote:
hi
i am new to struts 2.i am facing problem in performing validation through
xml
actually i want to display message at the top of my form instaed of at field
level
can anyone please help me
Hi,
In struts2 there is a provision for handling the error messages by field
Whoops, as the other reply said, it's the s:fielderror... tag [1], not
s:actionerror.
Dave
[1] http://struts.apache.org/2.x/docs/fielderror.html
--- On Wed, 6/25/08, Dave Newton [EMAIL PROTECTED] wrote:
--- On Wed, 6/25/08, Anshu Dhamija wrote:
i am facing problem in performing validation
Mailing List user@struts.apache.org
Sent: Wednesday, June 25, 2008 3:37:38 PM
Subject: Re: validation problem
Whoops, as the other reply said, it's the s:fielderror... tag [1], not
s:actionerror.
Dave
[1] http://struts.apache.org/2.x/docs/fielderror.html
--- On Wed, 6/25/08, Dave Newton [EMAIL
Hi,
How the validation should be done for fields which are only displayed in
certain conditions? If I do this through the XML file the validation is done
all the time even when the field is not visible.
You can implement validate() or validateActionAlias() and remember
to implement
Sent: Wednesday, June 25, 2008 3:37:38 PM
Subject: Re: validation problem
Whoops, as the other reply said, it's the
s:fielderror... tag [1], not s:actionerror.
Dave
[1] http://struts.apache.org/2.x/docs/fielderror.html
--- On Wed, 6/25/08, Dave Newton
[EMAIL PROTECTED] wrote
: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List
user@struts.apache.org
Sent: Wednesday, June 25, 2008 3:37:38 PM
Subject: Re: validation problem
Whoops, as the other reply said, it's the
s:fielderror... tag [1], not s:actionerror.
Dave
[1] http://struts.apache.org/2.x/docs
Jeromy Evans wrote:
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
This is what I intend to do. At the moment the CodeBehind/Convention
plugin estimates the name of view candidates (eg.
package-action-result.jsp)
This change would just need to extend that to check if a
Make sure your validation xml is named as ActionClass-alias-validation.xml,
if you want to apply it only to one method in ur action class
Naming it as Actionclass-validation.xml would apply your validation to all
methods in your action.
Jeromy Evans wrote:
Roberto Nunnari wrote:
Maybe the convention plugin should look into the tiles.xml
file, or check to see if the tiles plugin or tiles listener
are in the game..
Most probably, the definition names in tiles.xml should
follow the conventions, so that
definition
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
This is what I intend to do. At the moment the CodeBehind/Convention
plugin estimates the name of view candidates (eg.
package-action-result.jsp)
This change would just need to extend that to check if a tile exists
with that
--
- Original Message - From: Roberto Nunnari
[EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, June 21, 2008 7:25 PM
Subject: Re: validation and action names with slashes
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks
Roberto Nunnari wrote:
Maybe the convention plugin should look into the tiles.xml
file, or check to see if the tiles plugin or tiles listener
are in the game..
Most probably, the definition names in tiles.xml should
follow the conventions, so that
definition name=auctionView..
becomes
--- On Sun, 6/22/08, Doug Pham [EMAIL PROTECTED] wrote:
I have an action that have multiple methods that I mapped
to. Only one action that I need validation for, the rest
I don't need. Where can I get information to set this
up or how do I set it up using the XML file?
built! going to experiment a bit.
Thank you and best regards.
--
Robi
Jeromy Evans wrote:
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenience of
Roberto-
Just to clarify..how should the Results mapping annotations configuration be
introduced?
Thanks
Martin--
- Original Message -
From: Roberto Nunnari [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, June 21, 2008 7:25 PM
Subject: Re
Anybody on this, please?
--
Robi
Roberto Nunnari wrote:
Hello.
I'd like to use declarative Action-alias field validation for
several Actions/methods in my S2 webpapp.
S2 let's me do in struts.xml elegant things like:
package name=admin extends=tiles-default namespace=/admin
...
action
Oops.. little typo! Correction below, in context.
Maybe using a different separator in action name, like '!'
instead of '/' could help..
But now this leads me to a more general question:
Can action names containing '*' be mapped at all to Action-alias validation?
Thank you!
--
Robi
Roberto
Hi guys.
From my tests here's what I found:
1) action names with '/' are not usable for declarative action-alias
validation because of java package name (and most probably filesystem )
incompatibilities
2) action names with wildcards and '!' (ie '*!*') are not usable for
declarative
Roberto Nunnari wrote:
2) action names with wildcards and '!' (ie '*!*') are not usable for
declarative action-alias validation. No idea why.
This works:
action name=manageAccount!* method=do{1}
class=package.ManageAccountAction
matches the XML validation:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenience of conventions?
--
Robi
Jeromy Evans wrote:
Roberto
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenience of conventions?
It works with
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the
Anet wrote:
Hi everybody;
I have some tables on my page. each of them contains some of properties. for
the first time, tables are hidden and will be displayed by this javascript code:
function toggle(id){
var id = id;
var table = document.getElementById(id);
That's the way we roll in Struts 2, it works even when it is not
supposed to :). Do you have any xml validation set up as well?
musachy
On Mon, May 12, 2008 at 12:00 PM, Anna Skawińska [EMAIL PROTECTED] wrote:
Hi all,
I'll start my posting here with a fairly basic Java issue - hope I won't
Actually, Struts 2 checks the whole class hierarchy when an action is
to be validated, so it will find the annotation on the parent class.
musachy
2008/5/12 Musachy Barroso [EMAIL PROTECTED]:
That's the way we roll in Struts 2, it works even when it is not
supposed to :). Do you have any xml
The validate() method should be called for any request on that action
unless (a) the request is serviced by an excluded method (where the set
of excluded methods depends on the interceptor stack you are using
and/or an explicit configuration you've specified) or (b) you have
switched the
Hi Volker,
You can do it with struts xml validator:
Include a xml into your action package like this:
ActionName - alias from action - validation.xml
Example:
ActionName-save-validation.xml
* Note that save is the name of action in your struts.xml
Nothing better than a real example:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Márcio*,
*thanks for your quick answer. Yes, that will work, you're right.
Unfortunately is is not exactly what i would want. You are doing your
validation in the method that is called.
I would prefer the framework to call *validate()* before
Looks like a simple versioning error to me; you're doctype declaration:
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration
1.3//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd;
But you said:
But, the
Does it work if you use the DTD it says to use?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.3//EN
http://struts.apache.org/dtds/struts-config_1_3.dtd;
Dave
--- Adam Gordon [EMAIL PROTECTED] wrote:
Last night, our company had a
Well, the DTD files are identical, only the URLs are different so I
don't expect the outcome to be any different
And it turns out it's not. Changing the URL does not prevent Tomcat
from going out and trying to retrieve the DTD even though I've added it
to the JAR file.
Any other ideas?
No, the workflow interceptor will check for errors and return 'input'
if there are any:
http://svn.opensymphony.com/fisheye/browse/~raw,r=1630/xwork/trunk/src/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptor.java
In your case, why don't you remove the workflow interceptor?
On Mon, 2008-04-14 at 16:51 -0300, Décio Heinzelmann Luckow wrote:
Hi All,
Struts have some way to do the validation for multiple fields?
Décio
Yes
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Guillaume Bilodeau wrote:
Hi guys,
I'm using Struts 2.0.11 for a standard web application and using annotations
all the way. I have the following action, with some fields and getters /
setters omitted for brevity:
@ParentPackage(default)
@Results( {
@Result(name = input, type
*sigh*
I confused the s:form method attribute and used it to specify the method to
call on the action, not the HTTP form submit method. Everything's working
now. Definitely not my brightest moment.
Thanks a bunch,
GB
Laurie Harper wrote:
Guillaume Bilodeau wrote:
Hi guys,
I'm using
@struts.apache.org
Sent: Saturday, March 29, 2008 6:12 PM
Subject: Re: Validation
Hi,
Simple theme doesn't support Validation and error reporting. you may have
to use some other theme like xhtml theme
http://struts.apache.org/2.x/docs/xhtml-theme.html
Thanks,
Nuwan
Rodrigo Pereira
was wondering if
there is another option.
Thanks,
Rodrigo Pereira
- Original Message -
From: Nuwan Chandrasoma [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, March 29, 2008 6:12 PM
Subject: Re: Validation
Hi,
Simple theme doesn't support Validation
Hi
I had the same problem. The simplest is use the qxhtml theme.
See:
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme
You can download the theme and use in Struts.
You can combine it with theme simple. See the source jsp page with form.
The second possibility is extend the
Hi,
Simple theme doesn't support Validation and error reporting. you may
have to use some other theme like xhtml theme
http://struts.apache.org/2.x/docs/xhtml-theme.html
Thanks,
Nuwan
Rodrigo Pereira wrote:
Hi,
how can I position validation message on the screen? Also, when I have
a
The current usage of Annotating methods seems broken.
Its still applying all the validation rules to all methods despite methods
having different validation requirements.
The Struts Zero Config/Annotation/Auto Config needs help
Hopefully, a http://jira.opensymphony.com/browse/XW-603
On Wed, Mar 12, 2008 at 4:17 AM, xianwinwin [EMAIL PROTECTED] wrote:
Thanks Ealden, this was very helpful!
I tried that and it works fine.
Question, say I wish to check for a date, so far I've been doing it this
way:
example
private Date delta;
Thanks Ealden, this was very helpful!
I tried that and it works fine.
Question, say I wish to check for a date, so far I've been doing it this
way:
example
private Date delta;
@TypeConversion(converter=com.utilities.conversion.DateTypeConversion)
public void setDelta(Date
On Tue, Mar 11, 2008 at 7:10 AM, xianwinwin [EMAIL PROTECTED] wrote:
assuming registration is composed of fname, lname, ss, dob and except dob
all fields are mandatory.
Question: how do I make sure those fields will be input? should I have
something like:
Dave,
Thanks for the response.
Could you give an example of how to use the approach you suggested?
Here is my code:
interceptor-stack name=myStack
interceptor-ref name=defaultStack
param name=validation.excludeMethodsdelete, getA, getB/param
/interceptor-ref
/interceptor-stack
--- akash agrawal [EMAIL PROTECTED] wrote:
Thanks for the response.
Could you give an example of how to use the approach you suggested?
Here is my code:
interceptor-stack name=myStack
interceptor-ref name=defaultStack
param name=validation.excludeMethodsdelete, getA, getB/param
--- akash agrawal [EMAIL PROTECTED] wrote:
I am using validation framework and would like to disable validation for
all the query methods like getA(), getB(), getC().
There is a excludeMethods property using which I can turn off validation
for above methods by spelling out each method.
1.
Thanks Jeromy, Sorry, I did not provide enough detail.
Only Header Key value is numeric '-1' so first option can be ruled out for
me.
For rest of the values Key is ISO Code e.g. USA and Value is Country Name
e.g. 'United States'
Below expression is not working for me.
param
I'd look closer at your expression as it doesn't seem valid:
param name=expression![CDATA[user.country == '-1']]/param
If it's always returning true, that implies the expression inside the CDATA
section is always false.
First I'd put the ! operand inside the CDATA section and use string
If your keys are just numbers, perhaps you could use the Int Validator
field-validator type=int
param name=min0/param
message key=required.country/message
/field-validator
http://struts.apache.org/2.x/docs/int-validator.html
Otherwise I'd try some variations of the expression. It's
Rather than use the validation framework, I'd probably go with a
Validate method (by implementing Validatable).
Then, instead of using an OGNL expression, you can loop through the
list using Java, and call addFieldError if there's a problem.
Alternatively, a custom type converter that turned the
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon [EMAIL PROTECTED] wrote:
Of course yes :-). But I need a validate() per method.
I haven't used it myself, but the syntax validate-action is suppose to
work, in the same way that it works for the validation framework.
HTH, Ted
*
Le vendredi 11 janvier 2008 à 07:36 -0500, Ted Husted a écrit :
Rather than use the validation framework, I'd probably go with a
Validate method (by implementing Validatable).
Firstly, thank you very much for your answer :)
Ok then... That what I though... But my problem is that Validate() is
Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit :
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon [EMAIL PROTECTED] wrote:
Of course yes :-). But I need a validate() per method.
I haven't used it myself, but the syntax validate-action is suppose to
work, in the same way
The validation interceptor will look for, and call, validate${methodName}
(and validateDo${methodName}).
d.
--- Martin Braure de Calignon [EMAIL PROTECTED] wrote:
Le vendredi 11 janvier 2008 à 09:15 -0500, Ted Husted a écrit :
On Jan 11, 2008 8:10 AM, Martin Braure de Calignon [EMAIL
Le vendredi 11 janvier 2008 à 15:46 -0800, Dave Newton a écrit :
The validation interceptor will look for, and call, validate${methodName}
(and validateDo${methodName}).
d.
Great ! thank you all :-)
--
Martin Braure de Calignon
signature.asc
Description: Ceci est une partie de message
Singulariter wrote:
Hi all,
Quick Struts 2 validation question:
Is it possible to validate only the fields displayed in a form, when the
form's fields are part of a larger object that uses annotation validation?
The problem is that I am using one object across many forms, each form
contains
Great! I guess I'll be switching to XML validation or action specific
validation.
Thanks for the info :)
George
Laurie Harper wrote:
Singulariter wrote:
Hi all,
Quick Struts 2 validation question:
Is it possible to validate only the fields displayed in a form, when the
form's
Er, the default stylesheet *does* make it show up in read. Are you using the
s:head/ tag? IIRC that is what includes the CSS file.
d.
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Is there a way to apply style sheet (CSS) to the message validator
generates? For example, how to make the Color
Thanks Dave. It seems the simple theme is used so the message is in black.
I overrode the ..errorMessage style in JSP which solved my problem but I'm
not sure if it's a right way to do that.
Thanks again.
On Dec 19, 2007 8:09 PM, Dave Newton [EMAIL PROTECTED] wrote:
Er, the default
I believe the errors are within a span with class errorField (it may
be something else). Custom CSS can make you look like whatever you want.
[EMAIL PROTECTED] wrote:
Thanks Dave. It seems the simple theme is used so the message is in black.
I overrode the ..errorMessage style in JSP which
Thanks Alberto.
Which class contains style for s:textfield .../? I need to customize it so
that no span ../ is around it and the text associated with it is in bold.
e.g., s:text field key=some key/
If the value of the some key is Password, I want the Password is in
bold.
Any suggestion?
As the matter of fact, I found several ways in which you can modify the
outcome of the tag.
The basic (and in my opinion, a hack) is to look at the generated HTML
code and then use your own CSS to modify the look and feel of your view.
I'm currently using the simple theme and in all my
Thanks so much, Alberto. Your guide is very helpful.
On Dec 19, 2007 10:21 PM, Alberto A. Flores [EMAIL PROTECTED] wrote:
As the matter of fact, I found several ways in which you can modify the
outcome of the tag.
The basic (and in my opinion, a hack) is to look at the generated HTML
code
Which validators you used for the two fields, which are getting validated
rightly?
I am facing similar situation that whenever you use required validator,
it'll not work.
So for the string field you have to use requiredstring validator.
For number, specially which have long data type, I am not
Thank you, Paul, for the clarification about the parsing of the regex (ORO
vs JDK 1.4); that's completely new to me! No luck so far in trying to
checkout the latest build of Validator 1.4, but will try again later today.
Failing that, I'll look into ORO's regex parser.
2007/12/10, Paul Benedict
Let me know. I am really interested in I18N issues. I want to be able to do
the same thing.
On Dec 11, 2007 9:18 AM, Pierre Thibaudeau [EMAIL PROTECTED]
wrote:
Thank you, Paul, for the clarification about the parsing of the regex (ORO
vs JDK 1.4); that's completely new to me! No luck so far
Pierre. I think that Validator 1.3 relies on Jakarta ORO for its regular
expression parsing. You need to visit that project and see if it can do what
you want.
With that said, Validator 1.4 is based on JDK 1.4 and can use the native
Java regex engine.
Do any of these engines do what you need?
iam using struts2 iam getting a validation Problem
All the fields get Validated while using the get method for a particular
action while using the post method (using 5 Fields)only two fields get
validated
In jsp
s:textfield key=externalPosting.externalPostingName required=true
[EMAIL PROTECTED] wrote:
Hi all
iam using struts2 iam getting a validation Problem
All the fields get Validated while using the get method for a particular
action while using the post method only two fields get validated
Ginu
Which are the two fields are getting validated and which are not..
On Dec 11, 2007 10:17 AM, [EMAIL PROTECTED] wrote:
iam using struts2 iam getting a validation Problem
All the fields get Validated while using the get method for a particular
action while using the post method (using 5
Hi Jerome,
I have created a new thread. I never did reply to any e-mail when
composing this email. However I did reply to a reply I could have got.
This problem could have been caused by both the threads having the same
subject. It is unintentional.
Ginu.
[EMAIL PROTECTED] wrote:
Hi
This are the two Fields get validated
s:textfield key=externalPosting.amount.amount required=true
cssClass=text medium /
s:textfield
id=postingAppDatekey=externalPosting.postingApplicationDate
required=true cssClass=text medium /
Field which are not getting Validated
s:textfield
Please put some more inputs.
On Dec 8, 2007 12:40 PM, [EMAIL PROTECTED] wrote:
Hi all
iam using struts2 iam getting a validation Problem
All the fields get Validated while using the get method for a particular
action while using the post method only two fields get validated
Ginu
Well, it seems my question got people stumped as much as I am!
For an alternative solution, I would love advice on a (working) regex
expression that would approximate the class of characters I am aiming at:
say all the letters of the Latin1 set (ISO-8859-1). If we could eventually
supplement
I realized that since this was a custom validator, I can add the error
message to the fieldErrors with whatever key i choose - so i can now
reference that error message. What about for other validators, like the
expression validator, is there a way to specify a key for it? I think the
expression
Tom,
I've read this thread with great interest.
Currently I'm thinking about the validation problem as well. I looked at
springmodule's Bean validation framework.
(https://springmodules.dev.java.net/docs/reference/0.8/html/validation.html#beanValidator).
Looks quite interesting to me.
Does
That looks like an interesting project. There are a lot of things that I
like about what they are doing. There are a lot of things that could be
handle that way. My fear with making everything a seperate Rule class is
that some things cannot be encoded as a simple rule. Somevalidation needs
Tom Schneider wrote:
This is essentially what we're doing as well, but it is far from an ideal
situation. The issue I've seen is that you can't easily use the validators
from the xml in the validate() method. Another disadvantage is that
validation is in 2 different places. Also, some of our
I think drools would be way overkill for simple validation. Not only would
there be a high learning curve, I don't think it would handle the most
involved cases. I really think we need to do Java by default.
The reason I included a way to autofind the validation class is to mimic how
the
Just wanted to point out: http://jcp.org/en/jsr/detail?id=303 which is
relevant to our discussion. No activity on this JSR since July of '06. I'm
not convinced that annotations really solve the problem. I think for
anything more than simple type checking you need a true programming language
to
This is essentially what we're doing as well, but it is far from an ideal
situation. The issue I've seen is that you can't easily use the validators
from the xml in the validate() method. Another disadvantage is that
validation is in 2 different places. Also, some of our validate() methods
get
I use validate() method from ActionSupport for complex bussines
validation.(it works in WorkFlowInterceptor).
Sometime, for trivial fields, i can use Struts ValidationFramework.(it
works after ParameterInterceptor)
Sean Kleinjung-2 wrote:
Hey,
I have a question concerning where
That should work and you will get a validation error, the only problem
is that it won't show up on the xhtml theme, so you will have to use
s:fielderrors /
musachy
On 10/23/07, chengas123 [EMAIL PROTECTED] wrote:
Does anyone have any ideas on how the dojo ajax tags can be validated
Is there any documentation anywhere, where I can see how to correctly return
errors in the validate method?
Cheers.
-Original Message-
From: Julien Leonard [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 16:17
To: 'Struts Users Mailing List'
Subject: RE: Validation errors in Action
Hello,
Why don't you use the validate() method ?
Julien
-Message d'origine-
De : Dean Pullen [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 12 octobre 2007 17:13
À : Struts Users Mailing List
Objet : Validation errors in Action
Hi all,
How do you get hold of the validation errors in an
Just stumbled on that as you replied.
Thanks again.
(But not for the pun ;) )
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 16:27
To: Struts Users Mailing List
Subject: RE: Validation errors in Action
--- Dean Pullen [EMAIL PROTECTED] wrote
--- Dean Pullen [EMAIL PROTECTED] wrote:
Is there any documentation anywhere, where I can see
how to correctly return errors in the validate
method?
This is a WW article but should still be valid.
Ha ha, valid, get it?
http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html
d.
--- Mitch Claborn [EMAIL PROTECTED] wrote:
Oops.
Question-validation.xml
public class ActionQuestion extends ActionSupport {
If you're gunning for validation based on the action
class name then this should be
ActionQuestion-validation.xml.
d.
--- Mitch Claborn [EMAIL PROTECTED] wrote:
Seems like the validation is not firing.
What am I missing?
Without any validation files and / or action files
it's kind of hard to say.
If you post your validation file (the tutorial uses an
XML config) that might be enough; posting your Action
file
]
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 11, 2007 1:23 PM
To: Struts Users Mailing List
Subject: Re: Validation not validating
--- Mitch Claborn [EMAIL PROTECTED] wrote:
Seems like the validation is not firing.
What am I missing?
Without any
-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 11, 2007 1:48 PM
To: Struts Users Mailing List
Subject: RE: Validation not validating
--- Mitch Claborn [EMAIL PROTECTED] wrote:
Oops.
Question-validation.xml
public class ActionQuestion extends ActionSupport {
If you're
I've tried adding a package.properties with the same key but nothing
seems to help - I still seem to get the same exception.
Anyone?
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 18:08
To: Struts Users Mailing List
Subject: Validation problem - key
--- Mufaddal Khumri [EMAIL PROTECTED]
wrote:
action name=workOnOrder
class=com.experiment.MyOrderAction
result name=error type=freemarker
/support/error.ftl
/result
/action
On the other hand,
http://mydomain/glop/workOnOrder.action
Throws an error, but struts does not take
When the validator framework encounters an error, it forwards the
request to the resource you identify with your 'input' attribute on the
action mapping. I was suggesting making that point to an action, and
using *that* action to load the lists.
L.
Ashish Kulkarni wrote:
Hi
The error is
201 - 300 of 902 matches
Mail list logo