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:

Re: Struts2 validation

2010-07-14 Thread kisja
Thanks for the answer. I'm trying this, but it is not working properly field name=telefonos field-validator type=fieldexpression ![CDATA[#paciente.telefonoMobil = 0 || #paciente.telefonoFixo = 0 ]] messagi/message

Re: Struts2 validation

2010-07-13 Thread jake
You can use the fieldexpression validator. See http://struts.apache.org/2.1.8.1/docs/fieldexpression-validator.html for details. On Tue, Jul 13, 2010 at 05:39:52AM -0700, kisja wrote: I have two textfield and I would like to validate that at least one of both have data. How I can do?

Re: Struts2 validation problem

2010-04-04 Thread zud
newton.dave wrote: 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

Re: Struts2 validation problem

2010-04-04 Thread zud
zud wrote: newton.dave wrote: 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

Re: Struts2 validation problem

2010-04-04 Thread zud
zud wrote: newton.dave wrote: 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

Re: Struts2 validation problem

2010-04-04 Thread zud
newton.dave wrote: 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

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

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
You might look into using the Preparable interface [1]. It's useful for these types of situations; just add the code to generate the list into a prepare() method on your action class instead of in execute(). Hope this helps, -Brian [1] -

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
Hi Brian, I have seen that interface. If I got more than one action method in one action class. Then when ever you execute/call method(action) in that action class, this prepare method will be called and this setting of list will be executed. But My main question why the list setting to null

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread Brian Thompson
I'm guessing that you have something like this.myList = populateList(); inside your execute() method. When validation fails, it just sends you back to the jsp without redoing execute(), so of course the list will be null. -Brian On Tue, Jan 26, 2010 at 10:26 AM, nani2ratna

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
Flow in my project works like this. When user request one web page, action method searchPm will execute. This calls populatePm method in service call. Then it will call some dao methods. I have JavaBean as a property in action class. This java bean get populated in service(dao) and return from

Re: Struts2 Validation with Spring convention plugin

2010-01-26 Thread nani2ratna
Hi, I assume, since it doesn't call any action class if validation fails, stack got only values from jsp which are already populated into bean properties when we submit before valdiation. Since bean is not in session, it should not have any values. But we have already submitted the form so thats

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

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

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
thanks dave! s:fielderror/ worked fine. I was trying too many things so got confused. I have one further question regarding validation. Is it possible to validate a text field only when certain strings are selected from the multiple drop down box. Basically I want to make the text feild

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: thanks dave! s:fielderror/ worked fine. I was trying too many things so got confused. I have one further question regarding validation. Is it possible to validate a text field only when certain strings are selected from the multiple drop down box. Basically I want to

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:

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
sorry but i can't. this is my code jsp: s:form action=/action/Login.action method=GET cssClass=form s:textfield label=Username name=username cssClass=basic/s:textfield s:password label=Password name=password cssClass=basic/s:password s:select label=Login as name=tipo cssClass=selezione

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

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:

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
The source for the example portlet app is here: http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_0_11_2/apps/portlet/ On Tue, Oct 21, 2008 at 5:46 PM, bakann [EMAIL PROTECTED] wrote: Did you find an example ? I think it is not working. devsahu wrote: Hi, Does stuts2 support

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

2008-07-25 Thread Halil Ağın
Hello Dave; Yes you are right, There is no ProjectStatus action defined. Now, i change the form action definition to s:form action=ProjectStatus_showAddPage .. and it is ok. validation works, but there is still a problem, When i request the

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

2008-07-25 Thread Halil Ağın
Sorry i amde a typo in the previous mail, ProjectStatus-validation,xml should be replaced with ProjectStatusAction-validation,xml 2008/7/25 Halil Ağın [EMAIL PROTECTED]: Hello Dave; Yes you are right, There is no ProjectStatus action defined. Now, i change the form action definition to

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

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
Hi Nicole, This is an action class that does validation of two parameters: public class SignonAction extends ActionSupport { private String username; private String password; @Override public String execute() throws Exception { Map session = null; boolean

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-14 Thread Jeromy Evans
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 in the page. My setup is that I have an Action class, which uses a Form

Re: struts2 validation

2008-07-14 Thread Markus Stauffer
If you want validation like in struts1 you can implement the interface com.opensymphony.xwork2.Validateable in your Action class. The method validate() is the same as in your struts1 FormBean. But maybe that's a bit old fashioned :) Regards -- Markus Stauffer On Mon, Jul 14, 2008 at 8:54 AM,

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

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

2008-03-26 Thread Dave Newton
Is your DTD correct? As a trivial test I turned off my WiFi and restarted a webapp that uses a validation configuration file and no issues throught he startup or validation process. Dave --- Nuwan Chandrasoma [EMAIL PROTECTED] wrote: Hi All, Has any one come across this issue? . we dont

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

2008-03-26 Thread Martin Gainty
So to take an example in the supplied validators xml validators field name=count field-validator type=int short-circuit=true param name=min1/param param name=max100/param message key=invalid.countInvalid Count!/message /field-validator

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

2008-03-26 Thread Nuwan Chandrasoma
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 http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd;

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

RE: Struts2 Validation

2008-01-24 Thread Jeff Hill (RR)
Kevin, You didn't mention what page has the form you're submitting, but let me call that page0. Let's say it has two buttons: Button1 for Action1, and Button2 for Action2. I'm assuming that you entered data and hit Button2, and this worked fine until you added the validation descriptor for

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

2007-10-26 Thread Igor Vlasov
use @SkipValidation annotation for methods, which you do not need to validate. This affects on StrutsValidationFramework For validate() method you must manually analyse the situation and skip its executing. Lindell, Andrew wrote: The problem I'm having is getting validation to run when

Re: struts2 validation for only one method in action

2007-10-18 Thread Igor Vlasov
Thank you for your answer. It was very helpful. Ian Roughley wrote: you can always use s:submit name=method:delete value=Delete / and s:submit value=Execute / - then you don't need the logic to determine which button was clicked in the execute() method, and you can use the validation

Re: struts2 validation for only one method in action

2007-10-17 Thread shan99
I have 2 mothods caled edit() and create() I used annotation based validation but tthing is i want to validate some of experssions in edit method and some of the in create() method cant use @skipValidation in this my problem is i can not difine this seperatly in my actiion class ..both methods

Re: struts2 validation for only one method in action

2007-10-17 Thread Igor Vlasov
And how to disable the SERVER side validation when delete button clicked ? ros wrote: Java Script validation fro button disabled by s:submit cssClass=button method=delete key=button.delete onclick=document.getElementById('ticketForm').onsubmit = null; /

Re: struts2 validation for only one method in action

2007-10-17 Thread ros
For struts it's interceptor-ref name=validation cancel,execute,delete,edit,list,print /interceptor-ref Hope this helps. ros Igor Vlasov wrote: And how to disable the SERVER side validation when delete button clicked ? ros wrote: Java Script validation fro

Re: struts2 validation for only one method in action

2007-10-17 Thread Igor Vlasov
This is not a solution. I have 2 submit button in one form: one for save and another for delete. All of them submit the form data to execute() method. There I can determine which button was pressed and do an appropriate bussines action. The problem is that i must to validate the data when OK

Re: struts2 validation for only one method in action

2007-10-17 Thread Ian Roughley
you can always use s:submit name=method:delete value=Delete / and s:submit value=Execute / - 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

Re: Struts2 Validation formating error messages

2007-08-12 Thread Laurie Harper
WiltOnTilt wrote: Hi, I've searched around here and googling to try to find a good answer but I haven't found one. I'm using the basic struts2 validation with the validate=true on my s:form so the validation is done client side. I'd like to change the error messages so they do not show up

RE: Struts2 validation with portlet

2007-07-05 Thread King, William S.
Can you point me to the location of the portlet example app? Thanks, Shane -Original Message- From: Nils-Helge Garli [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 9:34 AM To: Struts Users Mailing List Subject: Re: Struts2 validation with portlet If you look at the portlet

Re: Struts2 validation with portlet

2007-07-05 Thread Nils-Helge Garli
If you look at the portlet example application it has an example of using xml validation. Nils-H On 7/5/07, devsahu [EMAIL PROTECTED] wrote: Hi, Does stuts2 support its validation feature with portlet. Any help is highly appreciated. Thanks, Sabyasachi -- View this message in context:

Re: Struts2 Validation Question

2006-10-17 Thread Ted Husted
S2 Validation follows a config-behind-class model. You define a validation file for the Action class (or other JavaBean) that needs to be validated, and place it in the same package/folder. The validation follows the class hierarchy, so that if a class is extended, the subclass inherits the