Ashish Kulkarni wrote:
Hi
I have a defined following bean in struts-config.xml
form-property name=color type=java.lang.String /
form-property name=datereqList type=java.util.List /
In my action class i set datereqList and pass it along to the jsp, the jsp
displays it as drop down box,
in my
Hi
The error is thrown by validator frame work, and hence it never reaches
action class where i can load those list again,
I am not very sure how validtor framework works
Ashish
On 8/31/07, Laurie Harper [EMAIL PROTECTED] wrote:
Ashish Kulkarni wrote:
Hi
I have a defined following bean in
Struts 2 uses a hierarchical approach to validation which could be
used to support a multi-page workflow. (Struts 1 simulates a hierarchy
by using the page property on the ActionForm.) The validation follows
the Java class, not the action mapping. If class2 extends class1, then
when class2 is
Ted,
Regarding field validations, can you provide any reason why the validwhen
validator is not provided in Struts 2? . I think this is a step backwards
from Struts 1 where we could easily manage conditional validation (validate
fieldb only if fielda fieldc meet some condition)
Also, the
On 8/30/07, j alex [EMAIL PROTECTED] wrote:
Regarding field validations, can you provide any reason why the validwhen
validator is not provided in Struts 2? . I think this is a step backwards
from Struts 1 where we could easily manage conditional validation (validate
fieldb only if fielda
Sounds very similar to the problem i had but no straightforward solution yet
; i've put this for enhancement on JIRA -
https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901
Can you please check if this is what you need
Hey Joseph. I think thats something similar to what I am asking but I am not
even quiet sure. I was also wondering what if I have a method in class and I
have ClassName-methodName-validation.xml file which would validate those
base things so then in struts.xml I can do
Hey Joseph sorry I think I need something exactly like this:
https://issues.apache.org/struts/browse/STR-443
On 8/29/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote:
Hey Joseph. I think thats something similar to what I am asking but I am
not even quiet sure. I was also wondering what if I have
Sivaswamynatha K wrote:
Hello friends,
I am using struts 1.2.9. In my project, I have to navigate along the
five jsp pages. For each page I have one next button which updates the
data to the database. During that time I have to do only mask validation
and not required validation. In the fifth
Balazs Michnay wrote:
Dear Struts Users,
I have a form with 13 form controls on it. I'd like to use the Struts
Validation Framework to validate it, but it's acting weird.
What I'd like to do is to have AT LEAST ONE of the controls filled, but the test of
validWhen only allows simple boolean
Do you have struts.devMode = true?
I had the same problem and I was forced to change struts.devMode = false
I believe this is a change from 2.0.6 ( and in some regards, a worse one at
that ).
I'm still investigating it, but please try turning devMode off and seeing if
it helps.
Scott
I should correct myself. My problem may not be related, since it was due to
the CookieInterceptor's handling of setValue.
Can you post your pojo and your query string?
cilquirm wrote:
Do you have struts.devMode = true?
I had the same problem and I was forced to change struts.devMode =
By making that change the error has gone away. However it is now silently
dying for some other reason. I need to track that down. If I have more
problems I will post the code.
On 7/3/07, cilquirm [EMAIL PROTECTED] wrote:
I should correct myself.
I am thinking that this did not solve the problem, but rather squelched the
only message that gave me a clue as to what might be happening.
So back to the original problem. Here is the struts config:
action name=Profile class= com.ourcompany.struts.action.profile.Profile
result
:15 PM
To: Struts Users Mailing List
Subject: Re: Validation dies because of request param array?
I am thinking that this did not solve the problem, but rather squelched
the only message that gave me a clue as to what might be happening.
So back to the original problem. Here is the struts config
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Scott Kingdon
Sent: Tuesday, July 03, 2007 3:15 PM
To: Struts Users Mailing List
Subject: Re: Validation dies because of request param array?
I am thinking that this did not solve the problem, but rather squelched
the only message
On 6/20/07, lextest [EMAIL PROTECTED] wrote:
Hello,
We have a client using Struts 1.2.9. They are experiencing a problem when
trying to use client side validation on a struts page that is using
html:xhtml. It's the exact problem described in this bug report:
:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 9:13 AM
To: Struts Users Mailing List
Subject: Re: Validation and XHTML
On 6/20/07, lextest [EMAIL PROTECTED] wrote:
Hello,
We have a client using Struts 1.2.9. They are experiencing a problem when
trying to use client side validation
Actually no. I'm simply using Required validation on text boxes
(simple string input).
On 4/15/07, Adam Ruggles [EMAIL PROTECTED] wrote:
I haven't tracked it down yet, but I think it is in the type
converters. Are you using dates or decimal values on your forms?
Zach Calvert wrote:
Has
I'm having a similar problem. I'm extending the ActionSupport object
and I have no validation specified and I'm experiencing the same issue.
I did enable validation and the results didn't change. The application
was previously built on webwork2 where I didn't experience these issues
at all.
Has anyone figured out why Validation randomly fails???
On 4/14/07, Adam Ruggles [EMAIL PROTECTED] wrote:
I'm having a similar problem. I'm extending the ActionSupport object
and I have no validation specified and I'm experiencing the same issue.
I did enable validation and the results didn't
I haven't tracked it down yet, but I think it is in the type
converters. Are you using dates or decimal values on your forms?
Zach Calvert wrote:
Has anyone figured out why Validation randomly fails???
On 4/14/07, Adam Ruggles [EMAIL PROTECTED] wrote:
I'm having a similar problem. I'm
I have the same issue. atm I send everything to !input which is by default
excluded from validation.
But try looking at something like this in your struts.xml:
interceptor-ref name=crudStack
param name=validation.excludeMethodsedit,create/param
/interceptor-ref
I haven't tried
Para: Struts Users Mailing List
Asunto: Re: Validation, ModelDriven and Field Errors
--- Juan Espinosa [EMAIL PROTECTED] wrote:
Then i change the action to an action that implements ModelDriven,
when i do this changes the errors next to the controls doesnt appear
any more.
I
must add in the jsp
--- Juan Espinosa [EMAIL PROTECTED] wrote:
Then i change the action to an action that
implements ModelDriven, when i do this changes the
errors next to the controls doesnt appear any more.
I
must add in the jsp page the tag s:fielderror/ to
get the errros.
Anyone knows why the errors
Asunto: Re: Validation, ModelDriven and Field Errors
--- Juan Espinosa [EMAIL PROTECTED] wrote:
Then i change the action to an action that implements ModelDriven,
when i do this changes the errors next to the controls doesnt appear
any more.
I
must add in the jsp page the tag s:fielderror
,
Balazs
- Original Message
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, March 13, 2007 6:21:52 PM
Subject: Re: Validation Framework
--- Christopher Schultz wrote:
I didn't say that you need another URL that doesn't
perform
Hi Dave,
I came up with my own solution. Basically I wrote a method that I called
manually (i.e. I didnt use expressionvalidator annotation)..
in that method, i perform the check myself. If there was any error, I did
addFieldError(customers[index], getText(some.text.from.properties.file
));
--- Alex Wibowo [EMAIL PROTECTED] wrote:
It is not the best solution.. so if you found a
better way to do it, please let me know.
I don't know if this is a better way or not and it
does not use annotations (at least not yet), but...
(1) Create a validation config file for the *object*
(in my
Just a quick followup regarding annotations:
--- Dave Newton [EMAIL PROTECTED] wrote:
I don't know if this is a better way or not and it
does not use annotations (at least not yet), but...
If you annotate the class contained in the collection
the @VisitorFieldValidator still works.
This won't
Hi Dave,
Thanks for that.. I will have a look at the VisitorValidator tomorrow (its 1
AM here :P )
I am sort of in the same position as you (using Hibernate objects at the web
layer)... I have given that
a thought before (annotating the hibernate objects with validation
annotation). But that
--- Alex Wibowo [EMAIL PROTECTED] wrote:
But that will tie up the hibernate objects to
Struts,
wouldnt it?
XWork, technically, but yes. The other issue (I think;
haven't explored it yet) is that you'd lose the
ability to validate differently based on the Action
method (which I need).
So I'm
I don't know if this helps, but when I validate a list or array , i use
OGNL's selection/projection facility :
i.e. :
customers.{ ? #this.age gt 0 and #this.username neq null }.size() eq
customers.size
creates a list of all customers whose age is greater than zero and who have
a username
I'm still using struts 1.1 and your struts config/form is really
different from what I used to do.
But, in struts 1.1, we had to add
validate=true
in the struts-config on the action ...
your struts-config doesn't have any.
Maybe ...
Mike
Balazs Michnay a écrit :
Dear Struts Users,
I'm
--- Balazs Michnay [EMAIL PROTECTED] wrote:
I'm relatively new to Struts and am trying to get
the Validation Framework working without success.
You neither set validate='true' on your Action (in the
struts-config action-mapping configuration element)
nor call the form bean's 'validate' method
Users Mailing List user@struts.apache.org
Sent: Tuesday, March 13, 2007 4:24:09 PM
Subject: Re: Validation Framework
--- Balazs Michnay [EMAIL PROTECTED] wrote:
I'm relatively new to Struts and am trying to get
the Validation Framework working without success.
You neither set validate='true
Hi.
This is only a problem with javac and depending on wich java version you
use.
jdk5 should not have the problem.
You may also try to use jikes for compiler.
There may be or may be no code added for the validation.
But this is not the problem ...
Mike
Chaudhary, Harsh a écrit :
I am
: Tuesday, March 13, 2007 11:51 AM
To: Struts Users Mailing List
Subject: Re: Validation framework question
Hi.
This is only a problem with javac and depending on wich java version you
use.
jdk5 should not have the problem.
You may also try to use jikes for compiler.
There may be or may
.
-Original Message-
From: Mike Baroukh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 13, 2007 11:51 AM
To: Struts Users Mailing List
Subject: Re: Validation framework question
Hi.
This is only a problem with javac and depending on wich java version you
use.
jdk5 should not have
--- Mike Baroukh [EMAIL PROTECTED] wrote:
jdk5 should not have the problem.
Did 1.5+ remove the 64K limitation?
There may be or may be no code added for the
validation. But this is not the problem ...
Technically, no, but it's the gating issue in this
case.
Try breaking up the JSP into
List
Subject: Re: Validation framework question
then, you may try to look at the compiled jsp ?
Chaudhary, Harsh a écrit :
I know that the exception Maximum try/catch size reached has something to
do with the compiler but what I would likt to know is that whether or not any
validation code
Did 1.5+ remove the 64K limitation?
I'm not absolutly sure, but think.
I read this once and it's been a long time since I didn't saw this
exception ...
Mike
Dave Newton a écrit :
--- Mike Baroukh [EMAIL PROTECTED] wrote:
jdk5 should not have the problem.
Did 1.5+ remove the 64K
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Balazs,
Balazs Michnay wrote:
Thanks a lot for your help! It really does work! What I missed was
the validate=true attribute of the action tag, however, this was
not mentioned by any of the articles I read.
If it's not mentioned, you should point
--- Christopher Schultz wrote:
Right. Under most circumstances, you should set
validate=true in your action definition, and
/not/ call form.validate() in your own action.
You /are/ free to call validation by hand, but it's
generally more convenient to allow Struts to handle
the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
--- Mike Baroukh [EMAIL PROTECTED] wrote:
jdk5 should not have the problem.
Did 1.5+ remove the 64K limitation?
The 64k is a limit for method bodies, not try/catch. It should still be
very much in force:
where my IDE stores those files. I am
using WSAD 5.1.1 with WebSphere. Any suggestions would be appreciated.
Harsh.
-Original Message-
From: Mike Baroukh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 13, 2007 11:56 AM
To: Struts Users Mailing List
Subject: Re: Validation framework
--- Christopher Schultz wrote:
I wrote:
Try breaking up the JSP into dynamic includes
This might not help, depending in which type of
include you use. Static includes, for example, [...]
...
d.
Looking
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
--- Christopher Schultz wrote:
Right. Under most circumstances, you should set
validate=true in your action definition, and
/not/ call form.validate() in your own action.
You /are/ free to call validation by hand, but
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
--- Christopher Schultz wrote:
I wrote:
Try breaking up the JSP into dynamic includes
This might not help, depending in which type of
include you use. Static includes, for example, [...]
...
Heh. Missed dynamic.
--- Christopher Schultz wrote:
I didn't say that you need another URL that doesn't
perform validation.
Oh. I guess I don't know another way to show a form
via an Action without running validation except by
defining an Action.
d.
--- Alex Wibowo [EMAIL PROTECTED] wrote:
I am using Struts 2.0. Has anyone ever done
validation on individual item in java.util.List
before?
I'm drawing a blank on this one too after poking it
with a stick for about an hour now... I have a similar
requirement (but with fairly heavy
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
It appears you are probably using the ValidatorForm or
ValidatorActionForm in 1.x?
Just a thought ... could you just implement the validate method in the
Action form and handle it with logic? I did some looking, and see that
you can validate two fields against each other, but I couldn't find
I don't think you can do this without either a custom validator or as
Jim suggests, implementing it in the validate method of your form.
Niall
On 2/9/07, Jim Reynolds [EMAIL PROTECTED] wrote:
It appears you are probably using the ValidatorForm or
ValidatorActionForm in 1.x?
Just a thought ...
--- Struts2 Fan [EMAIL PROTECTED] wrote:
I wonder if we can put the validation message
whereever we want for each input field?
http://cwiki.apache.org/WW/form-tags.html
Search for labelPosition.
If you need more control
http://cwiki.apache.org/WW/themes-and-templates.html.
d.
I have the following problem:
The methods execute() and list() must not be validated by the save
method rule... I have differentes validation rules for each method, but
when I call the action, the interceptor tries to validate the input
before call execute method. How can I resolve this?
According to http://struts.apache.org/2.x/docs/validation-annotation.html
you can specify annotations at the method level.
André Faria-3 wrote:
Hi People!!!
Is there a way to use Validation Annotations only for a method or always
for the action...
Example, if I have a action
Yes, but thats didnt works...
If you specify the annotations on the method save for example... The
validation roles will be apllyied for the others methods too.
I am running Struts 2.0.3 with xWork 2.0.0 (06/01/2007)...
Thank's
André Faria
cilquirm escreveu:
According to
I haven't used this, but looking at the last example in the
documentation it looks like there are two types of field-level
annotation: property accessor annotations and action method annotations.
I would guess that validations specified through property accessor
annotations would always fire,
I tried to validate only the method save, so I puted the annotations on
the top of the save method signature, but when I called execute method
the validation erros appered.
André Faria
Laurie Harper escreveu:
I haven't used this, but looking at the last example in the
documentation it looks
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote:
This validates at the action mapping level so in the above case it validates
on update as well as create.
How do you validate just against the create submitaction of the
DispatchAction mapping?
I would suggest turning off the automatic
of parameters and
the third submitaction does not validate.
Regards
Andy
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: 28 December 2006 16:46
To: Struts Users Mailing List
Subject: Re: Validation Framework and DispatchAction
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote
both
need to validate but each validate against a different set of parameters and
the third submitaction does not validate.
Regards
Andy
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: 28 December 2006 16:46
To: Struts Users Mailing List
Subject: Re: Validation
On 12/28/06, Andy Foster [EMAIL PROTECTED] wrote:
This should solve my problem as each submitaction that requires validation
validates the same set of data.
However this will not work if there are three methods create and update both
need to validate but each validate against a different set
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
Thom Burnett wrote:
I'm trying to validate two fields - area code and phone number (as nnn-
no areacode in that input).
[snip]
constant-namephoneFormatMask/constant-name
What Chris said, plus this:
field property=areaCode depends=required, areaCodeMask ...
there's no validation rule named 'areaCodeMask' or 'phoneMask'; you want
just 'mask' as the rule name. See the validator documentation for examples.
Also, is validation working at all for you? For
PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, December 11, 2006 1:58 AM
Subject: Re: validation
I assume the different validators set the property argument of
ActionErrors.add() differently. Apparently the field validator sets it to
the field name (which allows
The easiest way to do this is to turn off automatic validation in your
struts-config.xml and manually call validation in your desired
methods. Something like:
ActionMessages errors = form.validate(mapping, request);
if ( errors != null errors.size() 0 ) {
LOG.warn(Errors detected!!);
Im using struts2, doing in this way works in struts2
In struts2 i have the object mapping and form??
-Mensaje original-
De: Ed Griebel [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 30 de Noviembre de 2006 10:51 a.m.
Para: Struts Users Mailing List
Asunto: Re: VALIDATION
The easiest
el: Jueves, 30 de Noviembre de 2006 10:51 a.m.
Para: Struts Users Mailing List
Asunto: Re: VALIDATION
The easiest way to do this is to turn off automatic validation in your
struts-config.xml and manually call validation in your desired methods.
Something like:
ActionMessages errors = form.validate
I want to know if could use validation in this way, telling
validation to be used only in the medthod registercustomer and the
results for this method
validationOk - result registrationView validationFail - result
registrationEnd
I dont want to use the methods input and success, also in this
PROTECTED]
Enviado el: Jueves, 30 de Noviembre de 2006 11:10 a.m.
Para: Struts Users Mailing List
Asunto: Re: VALIDATION
Sorry, I assumed you were using S1, I don't know how for s2.
On 11/30/06, Juan Espinosa [EMAIL PROTECTED] wrote:
Im using struts2, doing in this way works in struts2
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
Im using struts2, doing in this way works in struts2
In struts2 i have the object mapping and form??
Struts2 is rather different, but you can still do your validation in
your actions if you really want to (or do additional business-logic
.
Para: Struts Users Mailing List
Asunto: RE: VALIDATION
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
Im using struts2, doing in this way works in struts2 In struts2 i have
the object mapping and form??
Struts2 is rather different, but you can still do your validation in your
actions if you
and reference it using
xml entity..
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Friday, November 24, 2006 8:24 PM
To: Struts Users Mailing List
Subject: Re: Validation XMl entity
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vishal,
Vishal Seth wrote:
Hi
]
Sent: Friday, November 24, 2006 8:24 PM
To: Struts Users Mailing List
Subject: Re: Validation XMl entity
Vishal,
Vishal Seth wrote:
Hi,
Does struts validation support XML entity.
What do you mean? Can explain this question in more detail?
- -chris
Hi,
But does struts support when integrated with commons-validator?
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Monday, November 27, 2006 12:00 PM
To: Struts Users Mailing List
Subject: Re: Validation XMl entity
On 11/27/06, Vishal Seth [EMAIL PROTECTED
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vishal,
Vishal Seth wrote:
Hi,
Does struts validation support XML entity.
What do you mean? Can explain this question in more detail?
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla -
Struts validation is generally used only for validations of fields
from HTTP submissions, check out
http://struts.apache.org/1.x/faqs/validator.html
If you need to validate an XML file, you may be able to use the Apache
Digester classes (http://jakarta.apache.org/commons/digester/) or some
of
Schultz [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 15:37
Aan: Struts Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
That would be one solution, but in my case I have 4 submit
.
(if that make sense!)
-Oorspronkelijk bericht-
Van: Christopher Schultz [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 14:48
Aan: Struts Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew
Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
That would be one solution, but in my case I have 4 submit buttons,
two of which redirect the user to another action (keeping scope set to
session
A JS free application? You can assume today's browsers have javascript, the web
would break otherwise. Sure there are some cross platform issues but to go JS
free is a tall order and will limit you to a clunky UI.
If JS free is your direction, you could wrap your back button in a html:form
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
I have just begun to add validation to my forms using struts
validator, which is quite nice. I have however a problem when I have
more than one submit button on a form.
For example I have a Save button and a Back
'
Onderwerp: RE: Validation + multiple Submit buttons
A JS free application? You can assume today's browsers have javascript, the web
would break otherwise. Sure there are some cross platform issues but to go JS
free is a tall order and will limit you to a clunky UI.
If JS free is your direction, you
-
Van: Lance Semmens [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 14:54
Aan: 'Struts Users Mailing List'
Onderwerp: RE: Validation + multiple Submit buttons
A JS free application? You can assume today's browsers have javascript, the web
would break otherwise. Sure there are some
Use a Cancel button
http://struts.apache.org/1.x/struts-taglib/tlddoc/html/cancel.html
from javadoc
Renders an HTML input element of type submit. This tag is only valid
when nested inside a form tag body. Pressing of this submit button
causes the action servlet to bypass calling the associated
:[EMAIL PROTECTED]
Verzonden: dinsdag 14 november 2006 15:20
Aan: Struts Users Mailing List
Onderwerp: Re: Validation + multiple Submit buttons
You could turn off automatic validation in struts-config.xml and call
it manually in the action method when you need validation.
If you are using a recent
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Lance,
Lance Semmens wrote:
A JS free application? You can assume today's browsers have
javascript, the web would break otherwise. Sure there are some cross
platform issues but to go JS free is a tall order and will limit you
to a clunky UI.
I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andrew,
Andrew Martin wrote:
That would be one solution, but in my case I have 4 submit buttons,
two of which redirect the user to another action (keeping scope set to
session)
and then back to the original form.
Hmm... that makes things more
Andrew Martin wrote:
Maybe a stupid question but is it possible to call the specifc XML
configuration from within the action?
Yup, just set up your validation as usual, then set validate=false on
the action mapping and call the validation by hand:
ActionMessages errors = form.validate();
Look at where you're directing the action to go to if an error occurs
- i.e. what have you specified as you're input for the action in
your struts-config.xml?
It looks like the error occured after validation failed and when it
tried to forward to whatever was specified in the input parameter.
Hi, Niall,
Problem solved. That's cuz I was trying to forward to another customized
action. I had made this action as ForwardAction provided by Struts. It works
now. Thanks. Sorry I was a bit rush writing the previously email so that
forgot to put the version number.
Regards
Li
On 11/10/06,
Ummm... If you don't call html:javascript/ there won't be any client side
validation code inserted, so there won't be any client side validation
performed, IIRC.
(*Chris*)
On 10/26/06, zeta [EMAIL PROTECTED] wrote:
Ok, sorry. If I use DynaValidationActionForm instead of DynaValidationForm
zeta wrote:
I want to associate the validation with the action definition. In this way, I
need to performed the client-side validation when an action is called and
not taken into account the form associated to this action. Can you give me
some example of how do this?
I'm not sure what you mean
Ah ha. Found it. Looks like the dev guys accounted for this.
You can see how in org.apache.struts.validator.Resources.
public static ActionMessage getActionMessage(Validator validator,
HttpServletRequest request, ValidatorAction va, Field field) {
Msg msg =
hi,
there is no such type : java.lang.String[], try to use List or ArrayList
On 9/21/06, Sahil Gupta [EMAIL PROTECTED] wrote:
Hi,
I have used a dyna form in which I have a property which is a
multi-select pick list defined as
form-property name=location type=java.lang.String[]
Now I want to
Hi,
How can we use List or ArrayList in DynaValidator Forms?
Regards,
Sahil Gupta
-Original Message-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 3:57 PM
To: Struts Users Mailing List
Subject: Re: Validation on String[]
hi,
there is no such type
-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 3:57 PM
To: Struts Users Mailing List
Subject: Re: Validation on String[]
hi,
there is no such type : java.lang.String[], try to use List or ArrayList
On 9/21/06, Sahil Gupta [EMAIL PROTECTED] wrote:
Hi,
I have used a dyna
[mailto:[EMAIL PROTECTED]
Sent: Thu 21/09/2006 8:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation on String[]
Hi,
How can we use List or ArrayList in DynaValidator Forms?
Regards,
Sahil Gupta
-Original Message-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21
301 - 400 of 902 matches
Mail list logo