Re: Scope Interceptor and Struts2 Validation query...

2011-07-06 Thread log2akshat
Validation and using my Javascript. But can you please look into my 2nd query... Thanks -- Akshat -- View this message in context: http://struts.1045723.n5.nabble.com/Scope-Interceptor-and-Struts2-Validation-query-tp4554566p4556964.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Scope Interceptor and Struts2 Validation query...

2011-07-06 Thread Dave Newton
please look into my 2nd query... Thanks -- Akshat -- View this message in context: http://struts.1045723.n5.nabble.com/Scope-Interceptor-and-Struts2-Validation-query-tp4554566p4556964.html Sent from the Struts - User mailing list archive at Nabble.com

Scope Interceptor and Struts2 Validation query...

2011-07-05 Thread log2akshat
i have implemented the Struts2 validation framework, it is working fine. But I want these error-messages in a small popup screen with a ok button, when this popup is closed the focus should go to the field that has an error. Or is there any way by which we can use additional javascript onsubmit

Re: Scope Interceptor and Struts2 Validation query...

2011-07-05 Thread Wes Wannemacher
On Tue, Jul 5, 2011 at 4:10 PM, log2akshat akshat-...@iiitmk.ac.in wrote: i have implemented the Struts2 validation framework, it is working fine. But I want these error-messages in a small popup screen with a ok button, when this popup is closed the focus should go to the field that has

Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
When I implement the ModelDriven interface in my Struts2 actions; I follow your typical prepare() method as follows: public void prepare() throws Exception { if(id != null) { model = service.create(/* some parameters */); } else { model = service.lookupById(id); } } When a user

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Eric Lentz
So when this error condition is met and the user redirected back to the INPUT form; the field where they had entered xyz is now the original default initialized value. Can't you check the action error and not refresh the model when there is an error?

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
, May 19, 2011 11:58 AM To: Struts Users Mailing List Subject: Re: Struts2 Validation w/ModelDriven So when this error condition is met and the user redirected back to the INPUT form; the field where they had entered xyz is now the original default initialized value. Can't you check the action

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Aaron Brown
Users Mailing List Subject: Re: Struts2 Validation w/ModelDriven So when this error condition is met and the user redirected back to the INPUT form; the field where they had entered xyz is now the original default initialized value. Can't you check the action error and not refresh the model

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread Eric Lentz
: CRANFORD, CHRIS chris.cranf...@setech.com To: Struts Users Mailing List user@struts.apache.org Date: 05/19/2011 01:16 PM Subject: RE: Struts2 Validation w/ModelDriven Not that I am aware. The paramsPrepareParamsStack to my knowledge handles validation at the very end; so by the time validation has

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
that has been initialized in either prepare() or the execute() or entry point method calls themselves. -Chris -Original Message- From: Eric Lentz [mailto:eric.le...@sherwin.com] Sent: Thursday, May 19, 2011 1:22 PM To: Struts Users Mailing List Subject: RE: Struts2 Validation w

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 2:22 PM, Eric Lentz eric.le...@sherwin.com wrote: I'm curious. If you are using ModelDriven, then why do you load your model in prepare()? Why not in getModel? That'd mean you'd need the did I already load the model? code in getModel(), wouldn't it? Seems cleaner to use

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 3:55 PM, CRANFORD, CHRIS wrote: The framework will call getModel() multiple times before your validate() and execute() methods are invoked; and so by adding the create/lookup logic to getModel(); you would then have to wrap that block of code around a null check so that

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread Chris Pratt
themselves. -Chris -Original Message- From: Eric Lentz [mailto:eric.le...@sherwin.com] Sent: Thursday, May 19, 2011 1:22 PM To: Struts Users Mailing List Subject: RE: Struts2 Validation w/ModelDriven I'm curious. If you are using ModelDriven, then why do you load your model

Re: Struts2 validation on List of String data

2011-05-02 Thread Eric Lentz
String[] names; // OR ArrayList names; } i want to validate RequiredStringValidator validator on these names. I don't think the standard validations deal with arrays. Probably your best bet is to override validate() and validate on your own. See:

Struts2 validation on List of String data

2011-05-01 Thread newbee7
in context: http://struts.1045723.n5.nabble.com/Struts2-validation-on-List-of-String-data-tp4363039p4363039.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Struts2 validation

2010-07-14 Thread kisja
and I would like to validate that at least one of both have data. How I can do? (I apologize for my bad English) Thanks -- View this message in context: http://old.nabble.com/Struts2-validation-tp29149892p29149892.html Sent from the Struts - User mailing list archive at Nabble.com

Struts2 validation

2010-07-13 Thread kisja
I have two textfield and I would like to validate that at least one of both have data. How I can do? (I apologize for my bad English) Thanks -- View this message in context: http://old.nabble.com/Struts2-validation-tp29149892p29149892.html Sent from the Struts - User mailing list archive

Re: Struts2 validation

2010-07-13 Thread jake
? (I apologize for my bad English) Thanks -- View this message in context: http://old.nabble.com/Struts2-validation-tp29149892p29149892.html Sent from the Struts - User mailing list archive at Nabble.com

nested struts2 validation

2010-05-20 Thread Stephen Ince
Hi, I would like to do nested struts2 validation. I have two questions. 1) How do I specify the validation for the following field. Can some point me to some documenation for the expression validation. input type=text name=searchResults[${i}].resource.name .. validation.xml validator type

nested struts2 validation

2010-05-20 Thread Stephen Ince
Hi, I would like to do nested struts2 validation. I have two questions. 1) How do I specify the validation for the following field. Can some point me to some documenation for the expression validation. input type=text name=searchResults[${i}].resource.name .. validation.xml validator type

Re: Struts2 validation problem

2010-04-04 Thread zud
...@struts.apache.org -- View this message in context: http://old.nabble.com/Struts2--validation-problem-tp28042625p28137164.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Re: Struts2 validation problem

2010-04-04 Thread zud
: user-h...@struts.apache.org -- View this message in context: http://old.nabble.com/Struts2--validation-problem-tp28042625p28137165.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe

Re: Struts2 validation problem

2010-04-04 Thread zud
: user-h...@struts.apache.org -- View this message in context: http://old.nabble.com/Struts2--validation-problem-tp28042625p28137167.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe

Re: Struts2 validation problem

2010-04-04 Thread zud
...@struts.apache.org thanks for the reply i am not using springs i am using struts 2.x can you please help me out -- View this message in context: http://old.nabble.com/Struts2--validation-problem-tp28042625p28137191.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 validation problem

2010-04-03 Thread Dave Newton
zud wrote: 1) Is old errors is not getting cleared that means when the filed value is empty when i submit the form it shows required that is ok and agian when i submit with empty values again now it shows messages like filed is required filed is required Are you using Spring as your object

Struts2 validation problem

2010-03-26 Thread zud
fields empty then its gets validated but the error message is displayed 5 times how to make validations work properly i am not using any theme for my form any help will be appreciated greatly and thanks in advance -- View this message in context: http://old.nabble.com/Struts2

Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
have list box in jsp page and need to do validation on that jsp page. ANd you configured all your action classes in Spring appContext file. You wont succeed. Is that correct. Or is there any solution. Thanks and Regards RS -- View this message in context: http://old.nabble.com/Struts2

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
. Is that correct. Or is there any solution. Thanks and Regards RS -- View this message in context: http://old.nabble.com/Struts2-Validation-with-Spring-convention-plugin-tp27322517p27322517.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
this message in context: http://old.nabble.com/Struts2-Validation-with-Spring-convention-plugin-tp27322517p27322517.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
succeed. Is that correct. Or is there any solution. Thanks and Regards RS -- View this message in context: http://old.nabble.com/Struts2-Validation-with-Spring-convention-plugin-tp27322517p27322517.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
classes in Spring appContext file. You wont succeed. Is that correct. Or is there any solution. Thanks and Regards RS -- View this message in context: http://old.nabble.com/Struts2-Validation-with-Spring-convention-plugin-tp27322517p27322517.html Sent from the Struts - User

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
and need to do validation on that jsp page. ANd you configured all your action classes in Spring appContext file. You wont succeed. Is that correct. Or is there any solution. Thanks and Regards RS -- View this message in context: http://old.nabble.com/Struts2-Validation-with-Spring

Re: struts2 validation for only one method in action

2009-11-30 Thread axing
you can use @SkipValidation -- View this message in context: http://old.nabble.com/struts2-validation-for-only-one-method-in-action-tp9082687p26572573.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Trouble with struts2 validation

2009-11-13 Thread Dave Newton
vikrant S wrote: Initially I did not check for null textfield and I was able to validate the username and password directly from database.but When I applied validate method in my action class It began to validate for null fields but not for stored username and password. I am pasting my

Trouble with struts2 validation

2009-11-12 Thread vikrant S
-- View this message in context: http://old.nabble.com/Trouble-with-struts2-validation-tp26316069p26316069.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Trouble with struts2 validation

2009-11-12 Thread vikrant S
the validation failed for database when I applied validation for textfield.? Could you please help me out of this..? -- View this message in context: http://old.nabble.com/Trouble-with-struts2-validation-tp26316586p26316586.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Trouble with struts2 validation

2009-11-12 Thread Brian Thompson
://old.nabble.com/Trouble-with-struts2-validation-tp26316586p26316586.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail

Struts2 Validation Problem - validation errors not being cleared when corrected!

2009-10-23 Thread Murray Furtado
Hi, I'm using Struts 2.0.14 and validation annotations. I have a UpdateUserAction class which implements ModelDriven and declares the execute() method with the following : @Validations( visitorFields = { @VisitorFieldValidator(message=, fieldName=model)} ) My model is a User class which has a

Re: Struts2 Validation Problem - validation errors not being cleared when corrected!

2009-10-23 Thread Murray Furtado
Hehe, I've just resolved my own issue! The problem was my spring configuration. I needed to specify scope=prototype on each of my Struts 2 Action declarations. Singleton actions were being created and thus previous field errors were being carried over between requests. I'm surprised this isn't a

help getting struts2 validation to work using java 1.6

2009-07-21 Thread gwen harold autencio
Hi Any workaround on validation of struts2 to work using java1.6 ? Seems to work using java 1.5.. version : struts2-core-2.0.11.2 Getting Error 500 in page java.lang.ExceptionInInitializerError     at

Struts2 - validation

2009-06-24 Thread Kishan G. Chellap Paandy
Hi Folks, I'm populating a list in my action class, which will be used in the JSP for populating a s:select/ tag. Now, I'm submitting the form, where I'm doing validation (server side validation) thru validation.xml. And this throws some action/field errors and the same JSP page is rendered

Re: Struts2 - validation

2009-06-24 Thread Greg Lindholm
This question gets asked about once a week on this list ;) http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html On Wed, Jun 24, 2009 at 9:07 AM, Kishan G. Chellap Paandy kishanchellapaand...@spanservices.com wrote: Hi Folks, I'm populating a list in

Struts2 Validation Annotations - Message with params

2009-06-23 Thread Robson
! -- View this message in context: http://www.nabble.com/Struts2-Validation-Annotations---Message-with-params-tp24167311p24167311.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user

Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
I have a very weird error. I am trying to do a very simple basic validation like this example: http://struts.apache.org/2.x/docs/basic-validation.html However, If i have the following line in my struts.properties then the validation stops happening and I do not see any errors.

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: However, If i have the following line in my struts.properties then the validation stops happening and I do not see any errors. struts.ui.theme=simple Technically, the validation does not stop happening. Has someone seen something like this before? Yes, anybody using

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
Stop using the simple theme. The simple theme tags don't display error messages--they're simple. You'll either need to switch themes, show field error messages by hand (if you want the messages near the fields), or modify/extend/create a theme to emit the HTML you want. At this time I cant

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
by the way. I can do without having errors right beside the textfield. I can have them grouped up top On 4/19/09, Bhaarat Sharma bhaara...@gmail.com wrote: Stop using the simple theme. The simple theme tags don't display error messages--they're simple. You'll either need to switch themes,

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: At this time I cant afford to change the theme of the site. Because that breaks the html on a lot of pages and would require a lot of effort to correct those pages. Changing to show field error messages by hand would most likely entail significantly more work. show

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: by the way. I can do without having errors right beside the textfield. I can have them grouped up top Are you saying the s:fielderror/ tag doesn't render field errors in the simple theme? The template file sure makes it look like it does. Dave

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
required only when some strings are selected from the multiple drop down box, which is in the same form as the text field. Can this be done via struts2 validation or do I have to write a custom validator for this? Thanks! On 4/19/09, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
to make the text feild required only when some strings are selected from the multiple drop down box, which is in the same form as the text field. Can this be done via struts2 validation or do I have to write a custom validator for this? I'd expect it could be handled with an expression validator

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/17 PEGASUS84 pegasu...@hotmail.it: Does someone knows how to hide the error message which cames from the action with name=input? i don't want to view this message Invalid field value... I thing you're talking about conversion errors, if so remove Conversion Error Interceptor [1] from

Re: struts2 validation

2009-02-18 Thread PEGASUS84
thanks for your answer i've removed the conversion error interceptor but the same message apper in my jsp page; if i see the html code i see td with the message invalide field value... is there a way for remove this td? -- View this message in context: http://www.nabble.com/struts2

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
Use theme simple [1] and add what tags you want [1] http://struts.apache.org/2.1.2/docs/themes-and-templates.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For

Re: struts2 validation

2009-02-18 Thread PEGASUS84
thanks, but in this way i'cant se the labels of the form; Can i override theme simple and remove only errorMessage? -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22087958.html Sent from the Struts - User mailing list archive at Nabble.com

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/18 PEGASUS84 pegasu...@hotmail.it: but in this way i'cant se the labels of the form; You can use s:label tag [1] Can i override theme simple and remove only errorMessage? Yes you can, take a look on [2] and [3] [1] http://struts.apache.org/2.1.6/docs/label.html [2]

Re: struts2 validation

2009-02-18 Thread PEGASUS84
in context: http://www.nabble.com/struts2-validation-tp22068251p22089792.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

struts2 validation

2009-02-17 Thread PEGASUS84
good evening; Does someone knows how to hide the error message which cames from the action with name=input? i don't want to view this message Invalid field value... -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22068251.html Sent from the Struts - User

struts2 validation help please

2009-02-17 Thread PEGASUS84
this message in context: http://www.nabble.com/struts2-validation-help-please-tp22068361p22068361.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: struts2 validation failed method

2008-11-03 Thread hernan gonzalez
The quick answer: in the default configuration, when the validation fails the result INPUT (input) is returned. You frequently define a mapping for this action and result in your struts.xml which renders the original jsp (the input) so that the user can see the errors (eg: s:actionerrors /) and

struts2 validation failed method

2008-11-03 Thread Harden ZHU
Hi, I have Basic Validation. If validation failed, which method struts2 is calling? Can I define some method like in struts1 input? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: struts2 validation failed method

2008-11-03 Thread Nils-Helge Garli Hegvik
Hi! If you look at the relationship between the ValidationInterceptor [1] and the WorkflowInterceptor [2], you should be able to figure it out. [1] - http://struts.apache.org/2.0.12/docs/validation-interceptor.html [2] - http://struts.apache.org/2.0.12/docs/workflow-interceptor.html Nils-H On

Re: Struts2 validation with portlet

2008-10-21 Thread bakann
Did you find an example ? I think it is not working. devsahu wrote: Hi, Does stuts2 support its validation feature with portlet. Any help is highly appreciated. Thanks, Sabyasachi -- View this message in context: http://www.nabble.com/Struts2-validation-with-portlet

Re: Struts2 validation with portlet

2008-10-21 Thread Torsten Krah
Am Dienstag, 21. Oktober 2008 17:46:41 schrieb bakann: Did you find an example ? I think it is not working. It is working. I am using 2.0.11.2 with portlets. I am using some field validators and configured validators.xml and my *.xml for the actions and validation triggers fine. -- Bitte

Re: Struts2 validation with portlet

2008-10-21 Thread Nils-Helge Garli Hegvik
its validation feature with portlet. Any help is highly appreciated. Thanks, Sabyasachi -- View this message in context: http://www.nabble.com/Struts2-validation-with-portlet-tp11445797p20093267.html Sent from the Struts - User mailing list archive at Nabble.com

Struts2 validation

2008-08-01 Thread Peter Bliznak
Hi all, converting big S1 application and run into this problem. Even though form is being validated in S1 version by validator.xml there is an user field which was validated on focus lost by asynch call using Ajax - to find found if by user chosen user name is still available. Call is then

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-25 Thread Halil Ağın
; is that action defined? Dave --- On Thu, 7/24/08, Halil Ağın [EMAIL PROTECTED] wrote: From: Halil Ağın [EMAIL PROTECTED] Subject: struts2 validation, tiles definition in input result type, problem! To: user@struts.apache.org Date: Thursday, July 24, 2008, 10:58 AM Hello List; I am

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-25 Thread Halil Ağın
] wrote: From: Halil Ağın [EMAIL PROTECTED] Subject: struts2 validation, tiles definition in input result type, problem! To: user@struts.apache.org Date: Thursday, July 24, 2008, 10:58 AM Hello List; I am trying to implement validation in struts2. My action is as follow: action

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-25 Thread Lukasz Lenart
Do you use xml based validation? If so, name the xml files correctly according to the name of actions, read [1], section Defining Validation Rules ProjectStatusAction-ProjectStatus_updateAddPage-validation.xml [1] http://struts.apache.org/2.1.2/docs/validation.html Regards -- Lukasz

struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Halil Ağın
Hello List; I am trying to implement validation in struts2. My action is as follow: action name=ProjectStatus_* class=tr.com.portakalteknoloji.action.projectstatus.ProjectStatusAction method={1} result name={1} type=tiles tvq.projectstatus.{1}/result

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Antonio Petrelli
2008/7/24 Halil Ağın [EMAIL PROTECTED]: Hello List; org.apache.tiles.definition.NoSuchDefinitionException: tvq.projectstatus. at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:394) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370) at

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Halil Ağın
tomcat : apache-tomcat-6.0.16.tar.gz WEB-INF/lib content: tiles-api-2.0.5.jar tiles-core-2.0.5.jar tiles-defs.xml tiles-jsp-2.0.5.jar struts2-config-browser-plugin-2.1.2.jar struts2-core-2.1.2.jar struts2-tiles-plugin-2.1.2.jar -Halil AGIN 2008/7/24 Antonio Petrelli [EMAIL PROTECTED]:

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Antonio Petrelli
2008/7/24 Halil Ağın [EMAIL PROTECTED]: tomcat : apache-tomcat-6.0.16.tar.gz WEB-INF/lib content: tiles-api-2.0.5.jar tiles-core-2.0.5.jar tiles-defs.xml tiles-jsp-2.0.5.jar struts2-config-browser-plugin-2.1.2.jar struts2-core-2.1.2.jar struts2-tiles-plugin-2.1.2.jar It seems that you

Re: struts2 validation, tiles definition in input result type, problem!

2008-07-24 Thread Dave Newton
Your action is submitting to ProjectStatus; is that action defined? Dave --- On Thu, 7/24/08, Halil Ağın [EMAIL PROTECTED] wrote: From: Halil Ağın [EMAIL PROTECTED] Subject: struts2 validation, tiles definition in input result type, problem! To: user@struts.apache.org Date: Thursday, July

Re: struts2 validation

2008-07-16 Thread Pierrot52
- -/ s:submit name=3DSubmit/ /s:form My setup is that I have an Action class, which uses a Form to set and get f= ield values from the JSP page. In Struts1 I was using the validate(...) method in the Form class. It seems none of the Struts2 validation examples on the net are working

RE: struts2 validation

2008-07-16 Thread Nicole Luneburg
Hi Pierre, Thanks for your code. Yes I did get it working with annotation, phew! Nicole -Original Message- From: Pierrot52 [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 July 2008 9:48 PM To: user@struts.apache.org Subject: Re: struts2 validation Hi Nicole, This is an action class

struts2 validation

2008-07-14 Thread Nicole Luneburg
- -/ s:submit name=3DSubmit/ /s:form My setup is that I have an Action class, which uses a Form to set and get f= ield values from the JSP page. In Struts1 I was using the validate(...) method in the Form class. It seems none of the Struts2 validation examples on the net are working for= me

Re: struts2 validation

2008-07-14 Thread Jeromy Evans
to set and get f= ield values from the JSP page. In Struts1 I was using the validate(...) method in the Form class. It seems none of the Struts2 validation examples on the net are working for= me. You haven't mentioned whether you're using XML validation or annotation-based validation

Re: struts2 validation

2008-07-14 Thread Markus Stauffer
an Action class, which uses a Form to set and get f= ield values from the JSP page. In Struts1 I was using the validate(...) method in the Form class. It seems none of the Struts2 validation examples on the net are working for= me. You haven't mentioned whether you're using XML validation

RE: struts2 validation

2008-07-14 Thread Nicole Luneburg
= myForm.getFieldName(); } Markus: Thanks for your reply too, I am trying it right now. Just want this to work grrr -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2008 4:25 PM To: Struts Users Mailing List Subject: Re: struts2 validation Nicole

Re: struts2 validation

2008-07-14 Thread Markus Stauffer
July 2008 4:25 PM To: Struts Users Mailing List Subject: Re: struts2 validation Nicole Luneburg wrote: s:form action=3Dmyaction method=3Dpost validate=3Dtrue The validate attribute here is used to enable client-side validation only. That will only work if you include the s:head attribute

RE: struts2 validation

2008-07-14 Thread Dave Newton
())) { ... } ... } It sort of seems like you're implementing a bit of ModelDriven, but manually--not a problem, but seems a bit duplicative. Dave --- On Mon, 7/14/08, Nicole Luneburg wrote: From: Nicole Luneburg [EMAIL PROTECTED] Subject: RE: struts2 validation To: Struts Users Mailing List user

RE: struts2 validation

2008-07-14 Thread Nicole Luneburg
Ah! Now I understand ... Looks like I will be changing a few things in this project ... Thanks for your help! -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2008 10:22 PM To: Struts Users Mailing List Subject: RE: struts2 validation If you don't

RE: struts2 validation

2008-07-14 Thread Nicole Luneburg
In case it helps anyone else, I found a simple solution ... Annotations. I did exactly what is here: http://struts.apache.org/2.x/docs/validation-annotation.html Thanks again for everyone's help! The contents of this email are confidential and may be subject to legal or professional privilege

Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Nuwan Chandrasoma
Hi All, Has any one come across this issue? . we dont have internet in our app server and the struts2 validation fails as it cant access www.opensymphony.com. Thanks, Nuwan. Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Dave Newton
have internet in our app server and the struts2 validation fails as it cant access www.opensymphony.com. Thanks, Nuwan. Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Martin Gainty
@struts.apache.org Sent: Wednesday, March 26, 2008 8:16 AM Subject: Struts2 validation issue when internet is not available in the application server. Hi All, Has any one come across this issue? . we dont have internet in our app server and the struts2 validation fails as it cant access www.opensymphony.com

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Nuwan Chandrasoma
across this issue? . we dont have internet in our app server and the struts2 validation fails as it cant access www.opensymphony.com. Thanks, Nuwan. Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Dave Newton
--- Nuwan Chandrasoma [EMAIL PROTECTED] wrote: This is my xml file. when we run in a local machine that has internet access this works fine. ?xml version=1.0 encoding=UTF-8? !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0.2//EN

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Nuwan Chandrasoma
I am using jboss-4.0.5-GA Dave Newton wrote: --- Nuwan Chandrasoma [EMAIL PROTECTED] wrote: This is my xml file. when we run in a local machine that has internet access this works fine. ?xml version=1.0 encoding=UTF-8? !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Dave Newton
--- Dave Newton [EMAIL PROTECTED] wrote: --- Nuwan Chandrasoma [EMAIL PROTECTED] wrote: This is my xml file. when we run in a local machine that has internet access this works fine. ?xml version=1.0 encoding=UTF-8? !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork

Struts2 Validation

2008-01-24 Thread djia002
called at all. How can I work around with this problem? Thanks in advance. Kevin -- View this message in context: http://www.nabble.com/Struts2-Validation-tp15079124p15079124.html Sent from the Struts - User mailing list archive at Nabble.com

RE: Struts2 Validation

2008-01-24 Thread Jeff Hill (RR)
an actionerror or some fielderror tags to page0, and let it redisplay so you can see what field is failing validation. ...Jeff -Original Message- From: djia002 [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 8:14 PM To: user@struts.apache.org Subject: Struts2 Validation Hello , I

Re: struts2 validation - wildcard mappings and the submit tag method parameter

2007-10-26 Thread Igor Vlasov
format for validation files (actionclass-alias-method). Thanks -Andrew -- View this message in context: http://www.nabble.com/struts2-validation---wildcard-mappings-and-the-submit-tag-%22method%22-parameter-tf4691287.html#a13423851 Sent from the Struts - User

struts2 validation - wildcard mappings and the submit tag method parameter

2007-10-25 Thread Lindell, Andrew
The problem I'm having is getting validation to run when the wildcard mapped method is specified in the submit tag method parameter and not in the form tag action parameter (action-method). Everything works fine when I set the form action param to specify the action and method. If the method

Re: struts2 validation for only one method in action

2007-10-18 Thread Igor Vlasov
= null; / ros wrote: If I have in one form DELETE and SAVE buttons, how to turn off client side validation for DELETE button? -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action

Re: struts2 validation for only one method in action

2007-10-17 Thread shan99
get validate from all expressions? any 1 have a ida? -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13249573 Sent from the Struts - User mailing list archive at Nabble.com

Re: struts2 validation for only one method in action

2007-10-17 Thread Igor Vlasov
; / ros wrote: If I have in one form DELETE and SAVE buttons, how to turn off client side validation for DELETE button? -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13253735 Sent from the Struts - User mailing list

Re: struts2 validation for only one method in action

2007-10-17 Thread ros
? -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13254840 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: struts2 validation for only one method in action

2007-10-17 Thread Igor Vlasov
DELETE and SAVE buttons, how to turn off client side validation for DELETE button? -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a13254948 Sent from the Struts - User mailing list archive at Nabble.com

  1   2   >