", list);
I'm not sure how to validate a simple array of strings (eg
java.lang.String[]) as the property attribute is required by the validator.
From: Sahil Gupta [mailto:[EMAIL PROTECTED]
Sent: Thu 21/09/2006 8:40 PM
To: 'Struts Users Mailing Lis
Hi,
Thanks a lot
Can I do put the validation with the help of validation.xml to a String[]
Regards,
Sahil Gupta
-Original Message-
From: Strachan, Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 6:11 PM
To: Struts Users Mailing List
Subject: RE: Validation on
a simple array of strings (eg java.lang.String[])
as the property attribute is required by the validator.
From: Sahil Gupta [mailto:[EMAIL PROTECTED]
Sent: Thu 21/09/2006 8:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation on String[]
Hi,
essage-
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,
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
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 wan
Thanks :) Got it done :)
On 9/19/06, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote:
Hi,
the problem is the sequence of tags you have to put
before
Sorry for my English.
2006/9/19, Tom Jerry <[EMAIL PROTECTED]>:
>
> why do I get this error ?
>
> SEVERE: Parse Error at line 87 colum
Hi,
the problem is the sequence of tags you have to put before
Sorry for my English.
2006/9/19, Tom Jerry <[EMAIL PROTECTED]>:
why do I get this error ?
SEVERE: Parse Error at line 87 column 19: The content of element type
"form-validation" must match "(global*,formset*)".
org.x
As per the dtd, global attributes should come first and formset later..
Move the global tags before formset and this should fix it.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
- Original Message -
From: "Tom Jerry" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: T
Mallik wrote:
Hi friends
i have stuckup in validation framework because my form will get fields
dynamically on user request
and i cannot predect how my fields it will have when posting the form
i am creating Dynamic form fields using javascript like
txt = document.createElement('input');
tx
There's an example of doing this inside the Struts Live Sample Chapters (p 144).
You can register on TheServerSide, and download it here:
http://www.theserverside.com/tt/books/sourcebeat/JakartaStrutsLive/index.tss
The section is titled: Extending Validate and Custom Validation in the
Validate()
g, request); // returns a new ActionMessages
object
saveErrors(request, errors);
...
in above case the 2nd saveErrors() call would replace the initial messages
From: Tom Jerry [mailto:[EMAIL PROTECTED]
Sent: Mon 18/09/2006 8:26 PM
To: Struts Users Mailing List
S
Thank you so much. It worked. btw, what did u mean "be careful to perserve
any messages" ?
On 9/18/06, Ted Husted <[EMAIL PROTECTED]> wrote:
Yes, but you have to call the super class's validate to fire the
validation framework, and be careful to perserve any messages.
-- HTH, Ted.
* http://www
Yes, but you have to call the super class's validate to fire the
validation framework, and be careful to perserve any messages.
-- HTH, Ted.
* http://www.husted.com/struts/
On 9/18/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
is it NOT possible to use both validation.xml and ActionErrors validate (
You can achieve what you want more simply; no need to start using Ajax
just for expanding an input form :-)
What you need to do is to generate additional rows that use the correct
naming conventions for the parameter names. Start by getting the form
working for some fixed number of input rows,
On Thu, 2006-09-14 at 16:13 +0530, Vaneet Sharma wrote:
> Hii Frns
>
> I have two drop downs in my jsp page,
>
> I want to validate second drop down only when the value of selected item
> of first drop down is 2.
> Can anybody tell me how to do this using validation framework.
Check this out
Hi friend,
i want how to create array of elements
please help me
urs
Mallik
Patil, Sheetal wrote:
>
> U can create array and create field as per reqiuirment,but this has
> limit and here problem is for "arrayindexoutofboundexception" after
> limit exceeds.
> Elsewise u can use ajax, put ur for
U can create array and create field as per reqiuirment,but this has
limit and here problem is for "arrayindexoutofboundexception" after
limit exceeds.
Elsewise u can use ajax, put ur form in session and send requeset to an
action which will increase the size of array and again put into the
session.
put the actionform scope in session in your mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 4:44 PM
To: user@struts.apache.org
Subject: Validation and Form Collections
Hello Everyone,
I have a question regarding validation.
I have JSP that uses the Html:Options tag to populate a DDLB
John De Lello wrote:
I have JSP that uses the Html:Options tag to populate a DDLB. The action
Populate a what? :-)
class creates the collection and puts it in the Form. All works fine until
the form validation fails. When I come back from the form validation, I am
getting a "Bean define canno
Perform following steps:
1. in Custom-forms.xml, put entries for all JSP fields with validators
like maxlength,required,excludeKnownBad etc.
2. in Struts Action-Mapping put validate=true.
3. Use where formName must be same as
in actionMapping and in Custom-Forms.xml
Hope this helps
/Raman
--
Everything looks OK so far, based on a quick scan through. What does the
rest of your login.jsp look like? In particular, what does your
html:form tag look like and where is the html:javascript tag?
You specified staticJavascript="false", so where are you importing the
static Javascript from?
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 05, 2006 4:53 PM
To: user@struts.apache.org
Subject: Re: validation framework problem?
Hi friends
--
this is my Action Login.java
package com.pack1;
import org.apache.struts.action.*;
import javax.servlet.http
Hi friends
--
this is my Action Login.java
package com.pack1;
import org.apache.struts.action.*;
import javax.servlet.http.*;
public class Login extends Action
{
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest re
Hi
i used validator and i got problems with validWhen, i wrote validWhen
with caps and until i change to validwhen it didn't work properly.
Please send us the struts-config.xml or the you use, maybe the
problem is there.
El mar, 05 de 09 de 2006 a las 13:05, Mallik escribió:
> HI Friends
> i
Hi Vaneet
I'm no expert on this to be sure; but I ran into a similiar issue. What I did
was provided the check for the Read only mode in the forms validate method; if
read only mode the validate method returned null; otherwise it invoked the
super.validate method which performs the normal val
Sharma,
If insert, update and read modes, are represented by 3 different
submits that trigger the actions,
make them 3 different action mappings, then put validate="false" in the
read action mapping, and true in the rest.
-Original Message-
From: Vaneet S
Use this
And add to message.properties
#formname.employerIdentificationNumber.required={0} - Please enter. Employer
ID Number is required.
Chetan Pandey <[EMAIL PROTECTED]> wrote:
I have a field in my for
On 8/10/06, Krishna, Hari <[EMAIL PROTECTED] > wrote:
Hi
I have a registration page where i have a list of text boxes (all are
mandatory).Is it possible to show one single error message for all the
fields while highlighting all of them in RED color?
For highlighting the the textboxes with red
his is off base, then I'll assume someone else will chime in.
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 8:57 AM
To: user@struts.apache.org
Subject: RE: validation of two form properties
can someone help me wih this please? Thanks.
As Tejas mentioned, you can use the tag to apply the
style to the text boxes. If the error message for that particular field is
present, it will apply the style to the text field.
As far as displaying a single error message, you can again use
on the top of the JSP instead of . Inside
the
Mailing List
Subject: RE: Validation message Help
How to filter out and where to do it?Do i need to customize
validation.xml?
-Original Message-
From: Vishal Seth [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE
How to filter out and where to do it?Do i need to customize validation.xml?
-Original Message-
From: Vishal Seth [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 12:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Validation message Help
You can try filtering
]
Sent: Thursday, August 10, 2006 12:26 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation message Help
Hi
Possible solution:
Write tags to check if the error message is set in the request and
correspondingly apply the style on the text boxes to render them in RED
color and als
Hi
Possible solution:
Write tags to check if the error message is set in the request and
correspondingly apply the style on the text boxes to render them in RED
color and also show the same error message.
Thanks & regards
Tejas
-Original Message-
From: Krishna, Hari [mailto:[EMAIL PROTEC
can someone help me wih this please? Thanks.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: validation of two form properties
Date: Tue, 08 Aug 2006 15:50:58 -0400
have form properties a and b
have to validate that property b is
)
Regards,
David
-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 1:06 PM
To: Struts Users Mailing List
Subject: Re: Validation problems: again...
yes both of em, I've post a pice of the config file ;)
yes either, both has valid
e-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 12:34 PM
To: Struts Users Mailing List
Subject: Re: Validation problems: again...
Hum, how could the one of them being validated them? If both extend
ActionForm? I gave up from validation plugin, I'm writing my
your log files that might shed some light on this?
Regards,
David
-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 12:34 PM
To: Struts Users Mailing List
Subject: Re: Validation problems: again...
Hum, how could the one of them being val
Hum, how could the one of them being validated them? If both extend
ActionForm? I gave up from validation plugin, I'm writing my own
validate method, isn't validate called even from ActionForm
subclasses?
Regards
On 7/4/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
You write:
>>Can someone expl
You write:
>>Can someone explain me this? Both form extend ActionForm and both actions
>>extend a common action.
Vinicius, I think you need to refer to my previous email: ActionForm does not
validate. You need to extend from ValidatorActionForm or ValidatorForm. The
first valdiates based on
27;
Asunto: RE: Validation does not verify the hidden controls?
Do you know if the hidden field values were sent by the browser? That would
be a place to start. Struts doesn't distinguish between an html:hidden and a
html:text field on the server side.
-Richard
-Original Message-
F
On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote:
Hello:
I have five tabs. When i click into a tab one css hide and other css
show.
If anything control of a form is into a css hide when I launch the
validation is not validate. Why?
Could you say what version of Commons Validato
Is the content of each tab within a tag, and you're just hiding and
showing the div?
Do they share the same form tag? Are all of them nested within it?
On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote:
Hello:
I have five tabs. When i click into a tab one css hide and other
cs
Do you know if the hidden field values were sent by the browser? That would
be a place to start. Struts doesn't distinguish between an html:hidden and a
html:text field on the server side.
-Richard
-Original Message-
From: José María Tristán [mailto:[EMAIL PROTECTED]
Sent: Thursday, Jun
You can use the "property" attribute to filter a specific properties messages:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5
Niall
On 6/26/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
Hello there! Just as I said in my last message, it's been a while
since my
Hi ,
Thanks for the reply.
You did understand my question.
Any way i have written a custom validator .
Thanks.
--
View this message in context:
http://www.nabble.com/Validation-a-specific-element-in-an-Stringt1824259.html#a4996461
Sent from the Struts - User forum at Nabble.com.
---
Hi,
so you have 2 textboxes and one of them is required, which is what you
want to validate. The problem is that they have the same name, I
assume. The obvious solution in that case would be to give them
different names, but I'm not sure I understand the question.
mvg,
Jasper
On 6/21/06, lingan
>this to work you need to define the property in your ActionForm as a
>String, not a Double.
Hi ,
I have treid this but couldnt find any luck, now instead of a defaut
value "0.0" in the case of 'Double' the invalid 'char/string' gets stored in
the database. As if the validtion is not work
always pass the double validation (but fail integer validation :-) For
this to work you need to define the property in your ActionForm as a
String, not a Double.
oops, missed that :}
mvg,
Jasper
-
To unsubscribe, e-mail: [EMAI
On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote:
Hi
Sorry for that incomplete mail. I am not getting any excetption and
that particular field is accepting everthing like characters and getting
saved in the database as '0', I guess thats the default value for that field
because I have defin
Hi
Thank you Jasper I will try for any updation.
Regards,
Antony
--
View this message in context:
http://www.nabble.com/Validation-not-working-for-%27double%27-with-Struts-1.2-t1754076.html#a4771298
Sent from the Struts - User forum at Nabble.com.
--
hi,
It looks fine to me. It sort of sounds like validation is not
happening at all. Maybe there is a problem in your form or jsp. Or
you coulld try updating to the latest version of Validator/struts if
yuo haven't allready.
mvg,
Jasper
On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote:
Hi
Hi
Sorry for that incomplete mail. I am not getting any excetption and
that particular field is accepting everthing like characters and getting
saved in the database as '0', I guess thats the default value for that field
because I have defined that corresponding property in the Action Form a
What isn't working? Is it not validating properly? Are you getting
some type of exception? Does it accept everything?
You can alway check the source code of FieldChecks to find out what it is doing.
mvg,
Jasper
On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote:
Hi all,
I am tryin
: "Scott Van Wart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Saturday, June 03, 2006 6:12 PM
Subject: Re: Validation 'depends' attribute order, and 'validwhen'
Jakub Milkiewicz wrote:
If you are thinking of creating custom validator reme
Hi.
Exactly boy :).
2006/6/4, Scott Van Wart <[EMAIL PROTECTED]>:
Jakub Milkiewicz wrote:
> If you are thinking of creating custom validator remember that even if
> your
> custom validator fails it doesn't mean that your form is invalid! You
> must
> remember to add ActionError/ActionMessage t
Jakub Milkiewicz wrote:
If you are thinking of creating custom validator remember that even if
your
custom validator fails it doesn't mean that your form is invalid! You
must
remember to add ActionError/ActionMessage to ActionErrors/ActionMessages
passed as a parameter to yor validator.
Wow,
Hi
As far as i remeber It works as a chain. Struts processes validators in
depends attribute from left to right.
If a validator fails (returns false) struts doesn't process the next one.
If you are thinking of creating custom validator remember that even if your
custom validator fails it doesn't m
No, js support for validwhen is not provided. You can tell by looking at
the validation-rules.xml file, which does not have a jsFunction
attribute defined on the "validwhen" validator element.
-Original Message-
From: Cassio Pereira [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 1
[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: validation with validwhen
Date: Fri, 26 May 2006 11:56:35 -0500
"and getting the error when used double."
Could you explain that? Like what exactly do you input when
, 2006 11:51 AM
To: user@struts.apache.org
Subject: RE: validation with validwhen
no, it's not a dumb question.
But yah, I do have the key right!! and getting the error when used
double.
Using 1.2.7 version of struts.
Actually I did try
>(*this* > 0) too but, this didn't wo
o: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: validation with validwhen
Date: Fri, 26 May 2006 10:20:01 -0500
Fea,
What version of struts are you using? Dumb question, but are you sure
the key "lbl.notvalidnumber" is spelled right in you
To: Struts Users Mailing List
Subject: RE: validation with validwhen
and also make sure it's value is greater than Zero.
Do you need >= or > than 0?
(*this* > 0) might do the trick.
Thanks,
Vijaya
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday,
and also make sure it's value is greater than Zero.
Do you need >= or > than 0?
(*this* > 0) might do the trick.
Thanks,
Vijaya
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, May 26, 2006 11:03 AM
To: user@struts.apache.org
Subject: RE: v
Thankyou for the response.
tried
(*this* >= 0)
but still not getting error message. any other suggessions?
From: "Chaudhary, Harsh" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: validation with
Instead of this:
(*this* >= 0)
Use this:
(*this* >= 0)
Its to do with how your '>' characters are parsed.
Harsh.
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Friday, May 26, 2006 8:01 AM
To: user@struts.apache.org
Subject: RE: validation w
Hi,
from http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html
we learn that:
If both items to be compared are convertable to ints, a numeric
comparison is done, otherwise a string comparison is done.
so since about any string is >= you will almost always get a valid check.
I
can someone help me with this please? thanks.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: validation with validwhen
Date: Thu, 25 May 2006 12:31:56 -0400
want to validate a property for
required,
and also make sure it's value
e a good place. Considering it
gives you access to a bunch of objects for free like the form bean, fields, the
request object, errors object etc. You could probably do it in a separate class
cueing off of the data from the form bean, but I think it would be much harder.
> >
> >
>
e like the form bean, fields, the
request object, errors object etc. You could probably do it in a separate class
cueing off of the data from the form bean, but I think it would be much harder.
>
>
> Harsh.
>
> -Original Message-
> From: Carl Smith [mailto:[EMAIL PROTEC
harder.
Harsh.
-Original Message-
From: Carl Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 2:31 PM
To: Struts Users Mailing List
Subject: RE: Validation for second field must greater than the first field
Harsh, Thanks for the quick response.
I was seeking if Stru
: Carl Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 2:31 PM
To: Struts Users Mailing List
Subject: RE: Validation for second field must greater than the first field
Harsh, Thanks for the quick response.
I was seeking if Struts has the internal validator do this things. If not
Harsh, Thanks for the quick response.
I was seeking if Struts has the internal validator do this things. If not,
then I agree with you in that I need to write my own custom validator easily.
But I prefer if Struts already has this sort of comparison validator.
"Chaudhary, Harsh" <[EMAI
The solution is to write a custom validator if you want to do it server side
using validator. In your custom validator, create 2 calendars, one each for
start date and end date. Then use the method call "before" or "after" on these
calendar.
Harsh. Man I got a lot of free time today.
-Orig
fea jabi wrote:
> Have 3 inputfields using which the user will be able to enter the SSN.
Why do I not always feel my personal data is safe?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
use the maxlength attribute on your field:
Andy Miller
IS Designer
Butte College
530.895.2946
-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:28 PM
To: user@struts.apache.org
Subject: validation
creating a jsp in which the user will be enterin
Validate each field using integer and intRange attribute values for
validation.
e.g.
min000
max999
And so on.
As for making sure on the client side that the user does not enter more
than 3 digits, use the "maxLen
Remember that your validation rules are written in XML, so you must
follow XML rules: escape less-than signs, greater-than, and ampersand.
If you don't like this, you can always wrap them in CDATA sections:
--- Albrecht Leiprecht <[EMAIL PROTECTED]> wrote:
>
> >If fails, because the test l
>If fails, because the test line for validwhen is not wellformed, because of
>this comparation
>(*this* < 300)
It works fine with a check for greaterThan, but it fails with the above
lowerThan...
>Any Idea how I could change it to make it work ??
>Rgds
>Albi
I changed this
(*this* < 300)
To
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
My form is extending ValidatorActionForm, not ValidateActionForm. Sorry about
that.
Extending ValidatorForm instead didn't help.
Since I'm not getting any sort of errors, it's very hard to figure out where
the issue may reside.
"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
I am not
I am not 100% on this as I don't know the package
"org.apache.struts.chain.commands.servlet.ValidateActionForm" very well, but
try extending your form from ValidatorForm from:
org.apache.struts.validator.ValidatorForm
Harsh.
-Original Message-
From: josh t [mailto:[EMAIL PROTECTED]
Se
Harsh.
>
> -Original Message-
> From: Paul Benedict [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 5:27 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Validation help: One struts form, multiple actions
>
>
> Chaudhary,
>
> You
From: Paul Benedict [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 5:27 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Validation help: One struts form, multiple actions
Chaudhary,
You need a custom validation key for each step in the process.
Override the form's valida
hat I think about it, my question is just this:
>
> Is there a way to selectively validate fields in a struts form?
>
> Harsh.
>
> -Original Message-
> From: Quinn Stone [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 4:03 PM
> To: 'Struts Users Maili
Chaudhary, Harsh wrote:
> Now that I think about it, my question is just this:
>
> Is there a way to selectively validate fields in a struts form?
>
Yes, only put the fields you want into the validation rule.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
ere a way in struts to partially validate the fields of a struts
form?
I hope I was clear in my explanation.
Harsh.
-Original Message-
From: Quinn Stone [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 4:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help:
My bad. Missed that. How is it blowing out?
Q
> -Original Message-
> From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 1:27 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: Validation help: One struts form, multiple ac
3:26 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help: One struts form, multiple actions
Your form name in validation.xml should be "InputDataForm" (no leading
slash),
not "/ClientA".
> -Original Message-
> From: Chaudhary, Harsh [mail
Your form name in validation.xml should be "InputDataForm" (no leading slash),
not "/ClientA".
> -Original Message-
> From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 1:16 PM
> To: Struts Users Mailing List
> Subject: Validation help: One struts form, multiple
Sandeep,
You can do complex validations in your ActionForm validate method. You
can also still invoke Validator validations by calling super.validate()
in your validation method if you are extending
|org.apache.struts.validator.action.ValidatorForm
I have found that there are many situations
Kyle, this is not exactly what you are looking for, but maybe it can
help a little:
http://wiki.apache.org/struts/DataEntryForm
(as you might have noticed, I like to draw pictures with blocks and arrows).
Michael.
-
To unsubsc
Are you saying that you've tried to call two mappings, one with an
associated actionForm and another without, and when calling action
without associated form you get a valid reference to a form? Are you
sure? Because it does not sound right, you should get null.
On 5/3/06, Kyle W. Cartmell <[EMAI
So in a Struts web application if I supply two mappings for a single
action, one that has a form and one that does not, and I call the one
with the form and then a few seconds later call the one without, the
form parameter to the execute method is not null on the second call. I
don't understand
Thank you Michael. This is extremely descriptive, and I'm going to
devote my nightly reading time to your article this evening. :)
What this tells me for right now is that this method of transferring
data isn't really something I should be using. I'm going to put my
temporary session object ma
On 5/3/06, Kyle W. Cartmell <[EMAIL PROTECTED]> wrote:
I did some tinkering and found that even though my setup action is
indeed associated with a form bean, and my reset method is defined and
sets my values to null, when I return to an action from a validation
failure or forwarded from another a
, the reset
method will not be called, and whatever was in the form will be
retained.
-Original Message-
From: Kyle W. Cartmell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 2:39 AM
To: Struts Users Mailing List
Subject: Re: validation breaks my form prepopulation
This is extr
bject: Re: validation breaks my form prepopulation
This is extremely helpful, because it gives me the opportunity to
prepopulate my form once again should validation fail. There's still a
sticky bit here, in that request attributes that are set from a previous
form are lost and cannot be rec
This is extremely helpful, because it gives me the opportunity to
prepopulate my form once again should validation fail. There's still a
sticky bit here, in that request attributes that are set from a previous
form are lost and cannot be recreated.
I believe that this is pretty much something
401 - 500 of 948 matches
Mail list logo