Re: Scope Interceptor and Struts2 Validation query...

2011-07-06 Thread Dave Newton
cript. > > 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.htm

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-05 Thread Wes Wannemacher
On Tue, Jul 5, 2011 at 4:10 PM, log2akshat 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 an error. > &

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: Struts2 Validation w/ModelDriven

2011-05-19 Thread Chris Pratt
e of a property member 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

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 t

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Dave Newton
On Thu, May 19, 2011 at 2:22 PM, Eric Lentz 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 prepare, since that

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread CRANFORD, CHRIS
ember 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 Validat

RE: Struts2 Validation w/ModelDriven

2011-05-19 Thread Eric Lentz
prepare. - Eric From: "CRANFORD, CHRIS" To: "Struts Users Mailing List" 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 validat

Re: Struts2 Validation w/ModelDriven

2011-05-19 Thread Aaron Brown
8 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 >> initial

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.

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?

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 fir

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: http://struts.apache.org/2.1.6/struts

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
>> >> (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. >> >>

Re: Struts2 validation

2010-07-13 Thread jake
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 - Use

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 at

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. searchResults.{#this.resource.name.length() > 0}.{? #this == false }.size() <= 0

nested struts2 validation

2010-05-19 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. searchResults.{#this.resource.name.length() > 0}.{? #this == false }.size() <= 0

Re: Struts2 validation problem

2010-04-04 Thread zud
e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@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--

Re: Struts2 validation problem

2010-04-04 Thread zud
>> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- Vie

Re: Struts2 validation problem

2010-04-04 Thread zud
>> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- Vie

Re: Struts2 validation problem

2010-04-04 Thread zud
be, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@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 Na

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 fac

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

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
tionException: Error >>> creating >>> >> bean >>> >> with name 'scopedTarget.pmaction': Scope 'request' is not active for >>> the >>> >> current thread; consider defining a scoped proxy for this bean if you >

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
t;> intend >> >> to refer to it from a singleton; nested exception is >> >> java.lang.IllegalStateException: No thread-bound request found: Are >> you >> >> referring to request attributes outside of an actual web request, or >> >> processing a reques

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
e, > >> your > >> code is probably running outside of DispatcherServlet/DispatcherPortlet: > >> In > >> this case, use RequestContextListener or RequestContextFilter to expose > >> the > >> current request. > >> > >> > >>

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
of DispatcherServlet/DispatcherPortlet: >> In >> this case, use RequestContextListener or RequestContextFilter to expose >> the >> current request. >> >> >> So if you have list box in jsp page and need to do validation on that jsp >> page. ANd you c

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
ou 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

Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
e the current request. So if you 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:

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. - To

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 code..

Re: Trouble with struts2 validation

2009-11-12 Thread Brian Thompson
t;public void setUserid(String userid) { >this.userid = userid; >} >public String getPwd() { >return pwd; >} >public void setPwd(String pwd) { > this.pwd = pwd; >} > > }

Trouble with struts2 validation

2009-11-12 Thread vikrant S
blic void setPwd(String pwd) { this.pwd = pwd; } } And my struts.xml is as follows:- http://struts.apache.org/dtds/struts-2.0.dtd";> success.jsp /login.jsp

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

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

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

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 com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser

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

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 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 again with

Struts2 Validation Annotations - Message with params

2009-06-23 Thread Robson
)}") But it's not working. Thanks! -- 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. ---

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
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; whether or

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
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 wrote: > Bhaarat Sharma wrote: >> by the way. I can d

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 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 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 fi

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 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, show field err

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 af

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 th

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. struts.ui.theme=sim

Re: struts2 validation

2009-02-18 Thread PEGASUS84
sorry but i can't. this is my code jsp: and this is the image http://www.nabble.com/file/p22089792/Image.jpg i don't want the message; please help me -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22089792.html Sent from

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/18 PEGASUS84 : > 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] http://struts.apache.org/2.1.6/docs/e

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 Nabbl

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 add

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 with the message invalide field value... is there a way for remove this td? -- View this message in context: http://www.nabble.com/struts2-valid

Re: struts2 validation

2009-02-18 Thread Lukasz Lenart
2009/2/17 PEGASUS84 : > 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 your stack [1] http

struts2 validation help please

2009-02-17 Thread PEGASUS84
. -- View 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

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 -

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: ) and reenter the dat

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 M

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 PROTE

Re: Struts2 validation with portlet

2008-10-21 Thread Nils-Helge Garli Hegvik
te: >> >> 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-w

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 s

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/Stru

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 interc

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 http://www

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

2008-07-25 Thread Halil Ağın
gt; > > > > Regards, > > > -Halil AGIN > > > > On Thu, Jul 24, 2008 at 6:22 PM, Dave Newton <[EMAIL PROTECTED]> > wrote: > >> Your action is submitting to "ProjectStatus"; is that action defined? >> >> Dave >> >> >

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

2008-07-25 Thread Halil Ağın
; wrote: > 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 def

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

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 s

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]>: > 2

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:37

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: tvq.projectstatus.{1} tvq.projectstatus.{1} tvq.projectstatus.{1} /ProjectStatus_list.action Since when validation process returns false, i want stru

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

Re: struts2 validation

2008-07-16 Thread Pierrot52
> id=3D"fieldName" > > theme=3D"simple" > > size=3D"1" > > list=3D"fieldList" > > headerKey=3D"" > > headerValue=

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 a

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&#

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 &

Re: struts2 validation

2008-07-14 Thread Markus Stauffer
eldName(); > } > > 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

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 N

Re: struts2 validation

2008-07-14 Thread Markus Stauffer
t;> >> 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 a

Re: struts2 validation

2008-07-13 Thread Jeromy Evans
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. If by not working you mean "does nothing&q

struts2 validation

2008-07-13 Thread Nicole Luneburg
up 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. Or I'm not doing it right. Anyone any

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. > > > > > > > "-//OpenSymphony Group//XWork Validator 1.0.2//EN" > > "http://ww

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. http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> Hmm, AFAICT that's exactly what

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. > > >"-//OpenSymphony Group//XWork Validator 1.0.2//EN" > "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> Hmm,

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

2008-03-26 Thread Nuwan Chandrasoma
me 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 Martin Gainty
ay, 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.

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

2008-03-26 Thread Dave Newton
his 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.NativeMethodAc

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

2008-01-24 Thread Jeff Hill (RR)
on some field that can never evaluate to true. If there's nothing obvious then I'd suggest adding 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 PROTECT

Struts2 Validation

2008-01-24 Thread djia002
without having data preloaded by edit() because edit() not get 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 a

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

2007-10-26 Thread Igor Vlasov
is specified in the submit tag does it use the same format > for validation files (actionclass-alias-method). > > > > Thanks > > > > -Andrew > > > > > > > -- View this message in context: http://www.nabble.com/struts2-validation---wil

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 i

Re: struts2 validation for only one method in action

2007-10-18 Thread Igor Vlasov
e button >>>> clicked >>>> ? >>>> >>>> >>>> >>>> ros wrote: >>>> >>>>> Java Script validation fro button disabled by >>>>> >>>>> >>>>

Re: struts2 validation for only one method in action

2007-10-17 Thread Ian Roughley
you can always use and - then you don't need the logic to determine which button was clicked in the execute() method, and you can use the validation config below. /ian Igor Vlasov wrote: This is not a solution. I have 2 submit button in one form: one for save and another for delete. All o

Re: struts2 validation for only one method in action

2007-10-17 Thread Igor Vlasov
t;document.getElementById('ticketForm').onsubmit = null;" /> >>> >>> >>> ros wrote: >>>> >>>> If I have in one form DELETE and SAVE buttons, how to turn off client >>>> side validation for

Re: struts2 validation for only one method in action

2007-10-17 Thread ros
>>> side validation for DELETE button? >>> >> >> > > -- 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.

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.

  1   2   >