Re: Validate method in action form

2003-12-18 Thread Ted Husted
Another approach would be to create a base ActionForm with the properties, and then extend it for each validation instance. You can also use the came ActionForm class in multiple form-bean elements, and then use the Struts Validator to give each form-bean it's own validation suite. HTH, Ted.

Re: Validate Uploads,

2003-11-07 Thread Rajat Pandit
hello sunny, why dont u write a quick jscript instead to check the value of the file type. u might also want to u use regex to check if the file selected was of a valid extension or not. personally, i dont find the validation.xml a pain unless the form is huge. for small issues writing a quick

Re: Validate Uploads,

2003-11-07 Thread Jeff Kyser
Check the javadocs for org.apache.struts.upload.FormFile, I think has a member, fileName, or something like that. You want to have a string filename on your form, and then make IT required. When the user successfully supplies a value, then you can set the FormFile's value to it. or something like t

Re: validate method

2003-10-31 Thread Ben Anderson
ActionErrors ae = form.validate( mapping, request ); if( ae.size() != 0 ){ saveErrors( request, ae ); return new ActionForward( mapping.getInput() ); } From: "Khandelwal, Rahul" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Re: Validate values in a collection

2003-09-26 Thread Rassmann, Natalie D
Timo, I would try to avoid using the requiredif because it will be deprecated with the next release of struts. validwhen will replace it. validwhen is much more powerful and easier to use. To get the validwhen code, you have to go and download a nightly build. I just did it a few days ago and

Re: Validate values in collection?

2003-09-26 Thread Timo Neumann
Natalie D Rassmann wrote: Hi Natalie and everybody, do you know if I can do a requiredif check against a second property in the same bean? something like: field[0] funds.valueNeeded fieldTest[0] EQUAL fieldValue[0] true Timo It depends on if it is indexed or not

Re: Validate values in collection?

2003-09-25 Thread Timo Neumann
Natalie D Rassmann wrote: Hi Natalie, now I got it. Thanks a lot. Timo It depends on if it is indexed or not. Here is an example that I have... I am using a multi-page for that is why I have the page attribute. The prepTime property is a String[]. Here is an exa

RE: Validate values in collection?

2003-09-25 Thread Nimish Chourey , Tidel Park - Chennai
You can always extend DynaValidatorForm and overwrite the validate method . -Original Message- From: Timo Neumann [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 6:06 PM To: Struts Users Mailing List Subject: Re: Validate values in collection? Natalie D Rassmann wrote

Re: Validate values in collection?

2003-09-25 Thread Natalie D Rassmann
It depends on if it is indexed or not. Here is an example that I have... I am using a multi-page for that is why I have the page attribute. The prepTime property is a String[]. Here is an example of a property that is part of the defectsList collection. defectsLis

Re: Validate values in collection?

2003-09-25 Thread Timo Neumann
Natalie D Rassmann wrote: So this works if "forms" is a collection of beans with a property "value"? Like you would any other type of form. Do you know how to set up the validator framework? If not try this link below: http://jakarta.apache.org/struts/userG

Re: Validate values in collection?

2003-09-25 Thread Natalie D Rassmann
Like you would any other type of form. Do you know how to set up the validator framework? If not try this link below: http://jakarta.apache.org/struts/userGuide/dev_validator.html Timo Neumann wrote: > Natalie D Rassmann wrote: > > > yes > > how? > > > > > Timo Neumann wrote: > > > > > >>Hi al

Re: Validate values in collection?

2003-09-25 Thread Timo Neumann
Natalie D Rassmann wrote: yes how? Timo Neumann wrote: Hi all, is it possible to use the validator framework to check values of beans that are stored in a collection in a DynaValidatorForm? TIA, Timo -- F&F Computer AnwendungenTel: +49 89 51727-352 und Unternehmensberatung GmbH Fax:

Re: Validate values in collection?

2003-09-25 Thread Natalie D Rassmann
yes Timo Neumann wrote: > Hi all, > > is it possible to use the validator framework to check values of beans > that are stored in a collection in a DynaValidatorForm? > > TIA, > > Timo > -- > F&F Computer AnwendungenTel: +49 89 51727-352 > und Unternehmensberatung GmbH Fax: +49 89 51727

Re: validate = false does not work

2003-07-25 Thread Michael Olszynski
ECTED]> Sent: Friday, July 25, 2003 10:48 AM Subject: RE: validate = false does not work I dont see any error in what is mentioned out here. Only doubt for me is that if u have changed the XML file in the middle and have not restarted the webserver... try restarting web server once... -Ori

RE: validate = false does not work

2003-07-25 Thread Nagaraj_K
I dont see any error in what is mentioned out here. Only doubt for me is that if u have changed the XML file in the middle and have not restarted the webserver... try restarting web server once... -Original Message- From: Michael Olszynski [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2

Re: validate() method - and form in session scope (solved)

2003-07-21 Thread Khalid K.
humm..was a dumb mistake :) in struts-config i had validate set to "false" :) - Original Message - From: "Khalid K." <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, July 21, 2003 10:23 AM Subject: validate() method - and form in session scope > Hel

RE: Validate method going in infinite Loop

2003-07-10 Thread Nagendra Kumar O V S
---   From: Pankaj Borgaonkar Date: Thursday, July 10, 2003 12:45:24 PM To: Struts Users Mailing List; Nagendra Kumar O V S Subject: RE: Validate method going in infinite Loop   Thanks Nagendra   But on

RE: Validate method going in infinite Loop

2003-07-10 Thread Pankaj Borgaonkar
Pankaj -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 12:43 PM To: [EMAIL PROTECTED] Subject: Re: Validate method going in infinite Loop hi pankaj, ** this action mapping goes into a infinite loop , becos, if u find an

Re: Validate method going in infinite Loop

2003-07-10 Thread Nagendra Kumar O V S
hi pankaj,   type="com.onstar.myonstar.process.web.controller.EmailCreationAction" name="emailCreationForm" validate="true"scope="request"input="/emailcreation.mo"> path="/jsp/virtualadvisor/emailcreation/va_pr_emailsetup_main.jsp"redirect="false"/> 

Re: Validate() in netscape

2003-07-07 Thread Adam Hardy
going to the page specified in Action Forward. Any clue why this doesn't work in Netscape? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:36 PM To: Struts Users Mailing List Subject: Re: Validate() in netscape sriram wrote: I'm using Netsc

RE: Validate() in netscape

2003-07-07 Thread sriram
rom: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:36 PM To: Struts Users Mailing List Subject: Re: Validate() in netscape sriram wrote: > I'm using Netscape 4.7 > > And the erors here are not javascript. > Simple validations performed in validate() method

Re: Validate() in netscape

2003-07-07 Thread Adam Hardy
sriram wrote: I'm using Netscape 4.7 And the erors here are not javascript. Simple validations performed in validate() method of ActionForm. I'm using an image in place of a submit button (using tag). In case value is not provided for a mandatory field, the validate() method will chk for null an

RE: Validate() in netscape

2003-07-07 Thread sriram
return an error. This error is shown in IE but not in Netscape. What could be the reason? Doesn't netscape support form submission through tags? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 3:46 PM To: Struts Users Mailing List Subjec

Re: Validate() in netscape

2003-07-07 Thread Adam Hardy
It's weird how many people have javascript issues with validator. What version of Netscape are you using and what errors are you getting? sriram wrote: I'm using Struts 1.0 and I have written some validations in the validate() method in ActionForm . For example, some of the fields on the form are

RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread Mounagurusamy, Jayakumar (HAL)
All the Javascript code from validator-rules.xml starting from"function validateMaxLength(form)" -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:37 AM To: Struts Users Mailing List Subject: RE: Validate Client side(Javasc

RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread David Graham
EMAIL">mailto:[EMAIL</a> PROTECTED] > Sent: Wednesday, June 25, 2003 9:29 AM > To: Struts Users Mailing List > Subject: Re: Validate Client side(Javascript) code shows up in the page > > > What version are you using? This sounds like a bug that was fixed som

RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread Greg Dunn
How is client side validation going to work if the JavaScript isn't there? Regardless, this JavaScript is to set the focus on the field you specified in the form with the focus="fieldName" attribute of the tag. Greg -Original Message- From: Mounagurusamy, Jayakumar (HAL) [mailto:[EMAIL

RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread Mounagurusamy, Jayakumar (HAL)
Struts version 1.1rc2 -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 9:29 AM To: Struts Users Mailing List Subject: Re: Validate Client side(Javascript) code shows up in the page What version are you using? This sounds like a bug that

Re: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread David Graham
What version are you using? This sounds like a bug that was fixed some time ago. David --- "Mounagurusamy, Jayakumar (HAL)" <[EMAIL PROTECTED]> wrote: > Hello, > > I got the following configuration in the struts-config.xml, > > > value="WEB-INF/resources/validator/validator-rules.

Re: validate String[]

2003-06-19 Thread ara
Hi,Ben. (B (BI think "required"(and others also) is work only String, (Bnot array. (BI was same situation, so I made a class that... (B (B (Bpublic class InputChecks extends FieldChecks { (Bpublic static boolean validateRequiredArray(Object (Bbean, (B

Re: validate= true destroys form defaults

2003-03-27 Thread Carsten Hammer
I found out that that with validate=true the mydispatchaction *never* is called. The requestprocessor instanciates the actionform calls the reset() and validate() methods of the actionform. The validate() methods gives an error because nothing has been filled in. It does not call the dispatchac

RE: validate= true destroys form defaults

2003-03-26 Thread Kandi Potter
[mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 3:21 PM To: Struts Users Mailing List Subject: Re: validate= true destroys form defaults This is my be a long shot, but I encountered it before. Makesure to make all your actions to have the same scope In this case: request. Do not leav

Re: validate= true destroys form defaults

2003-03-25 Thread Dan Tran
This is my be a long shot, but I encountered it before. Makesure to make all your actions to have the same scope In this case: request. Do not leave it blank. ]-D - Original Message - From: "Carsten Hammer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 12:01 PM

RE: validate business data

2003-03-17 Thread Henry Molina
Return Receipt Your RE: validate business data document

Re: validate business data

2003-03-14 Thread Dennis Muhlestein
We have a couple different approaches. But one is to create some custom validator Fields that can be plugged in to the validator. Then all errors, buisiness or otherwise, are done by the DynaValidatorForm. Makes our actions simpler. -Dennis On Fri, 2003-03-14 at 14:47, Dan Allen wrote: > *This

Re: validate business data

2003-03-14 Thread Dan Allen
Rick Reumann ([EMAIL PROTECTED]) wrote: > On Fri, 14 Mar 2003 15:47:57 -0600 > Dan Allen <[EMAIL PROTECTED]> wrote: > > > How do most of you handle this? Do you create a validateData() > > method in your Action class or is this something that the Model > > objects should be able to handle? >

RE: validate business data

2003-03-14 Thread Aaron O'Hara
Dan, In order to preserve a layered approach, there are 2 issues: 1) the display of errors 2) evaluating if an error has occurred In my Struts applications, I have a Business Logic Layer (BLL) that will always perform 2). In the Action class, I call the validation function to check for HTML for

Re: validate business data

2003-03-14 Thread Rick Reumann
On Fri, 14 Mar 2003 15:47:57 -0600 Dan Allen <[EMAIL PROTECTED]> wrote: > How do most of you handle this? Do you create a validateData() > method in your Action class or is this something that the Model > objects should be able to handle? Assuming you have the data in the correct form when you'

Re: validate business data

2003-03-14 Thread Ashish Kulkarni
Hi, What we have done in our application is created a busniess logic bean, so we create the instance of this bean in Action class and then get an ArrayList of all the messages ( error or display) and then put these messages in ActionErrors in Action class and forward it to jsp So we keep the busin

[OT] RE: validate() method is ActionForm

2003-02-14 Thread Sundar Narasimhan
>Any more personal attacks like this, or the previous response's profanity, >are likely to get you banned -- then you won't have to worry about >questions you think are below your dignity to answer politely. >Craig McClanahan Thank you Craig. I think this list is great, and now that I'm slowly g

[OT] RE: validate() method is ActionForm

2003-02-13 Thread Rabih Yazbeck
Bravo Mr Smart man... It is much easier for you to just ignore the question, instead of attack people .. and everyone will be happy .. -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: 13 February 2003 20:42 To: Struts Users Mailing List Subject: RE: validate

[OT] RE: validate() method is ActionForm

2003-02-13 Thread Pani, Gourav
l. having said that, i still think we should all try to read the API before posing questions. let's all keep up the good work. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 3:50 PM To: Struts Users Mailing List Subject: Re: valid

Re: validate() method is ActionForm

2003-02-13 Thread James Mitchell
t;[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 3:42 PM Subject: RE: validate() method is ActionForm I think I can safely say that that is the dumbest question I have ever seen on this list. And that's saying something. > -Original Message- > From: atta ur rehman [m

RE: validate() method is ActionForm

2003-02-13 Thread Craig R. McClanahan
On Thu, 13 Feb 2003, James Childers wrote: > Date: Thu, 13 Feb 2003 14:42:09 -0600 > From: James Childers <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: validate()

RE: validate() method is ActionForm

2003-02-13 Thread James Childers
I think I can safely say that that is the dumbest question I have ever seen on this list. And that's saying something. > -Original Message- > From: atta ur rehman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 2:41 PM > To: struts users mailing list > Subject: validate()

RE: validate() method is ActionForm

2003-02-13 Thread Durham David Cntr 805CSS/SCBE
RTFM ... just kidding. Of course you dipshit, also just kidding. -Dave > -Original Message- > From: atta ur rehman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 13, 2003 2:41 PM > To: struts users mailing list > Subject: validate() method is ActionForm > > > Dear all, > > Stru

RE: validate

2003-01-20 Thread Sri Sankaran
I assume that you are referring to the ActionForm class' validate() method. If so, you *must* further have specified an 'input' attribute for the action mapping in question. The framework will forward the request to the path that is the value of the 'input' attribute. So, if you have then

Re: validate one field in multipage

2002-12-18 Thread Derek Lin
David, I saw this email after I sent you my previous reply. Anyway, like I said, I am against the page attribute because it locks your form fields to certain page. My approach is to modify the validation code: For example: In Java: public static boolean validateRequired(Object bean,

Re: validate

2002-12-16 Thread Jenny
Richard, Eddie, Khalid. Thank you very much for giving me so clear explanation. Jenny - Original Message - From: "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Monday, December 16, 20

RE: validate

2002-12-16 Thread Yee, Richard K,,DMDCWEST
) Regards, Richard > -Original Message- > From: jenny zhang [SMTP:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 2:05 PM > To: Struts Users Mailing List > Subject: RE: validate > > Richard: > > Thank you for your reply. > I might misunderstand

Re: validate

2002-12-16 Thread Eddie Bush
I'd at least check for ((x != null) && (!"".equals(x.trim( for required (String) fields. ... better yet, use the StrutsValidator. That'll make it a lot easier on ya. Khalid K. wrote: if text field accepts any character (which includes, newline/cr, blank, tab, etc) all you need to validate

Re: validate

2002-12-16 Thread Khalid K.
if text field accepts any character (which includes, newline/cr, blank, tab, etc) all you need to validate is if object returned is null example: in u request object, you stored a parameter x with value y, you can check... if (x == null) error, else move on... since your text field can take a

RE: validate

2002-12-16 Thread jenny zhang
Richard: Thank you for your reply. I might misunderstand "character". "letter" is "a-zA-Z", right? What is character? "space" or "tab" is character. Right? Could you correct me if I am wrong. Sorry for asking the simple question. Regards, Jenny --- "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]

RE: validate

2002-12-16 Thread Yee, Richard K,,DMDCWEST
Jenny, If your input can contain ANY characters then what do you need to validate for? Why don't you just check for an empty string? Am I missing something here? -Richard > -Original Message- > From: jenny zhang [SMTP:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 1:47 PM > To: S

Re: validate() is working !!!!! Thanks Patrice!

2002-11-27 Thread Patrice
o: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 6:53 PM Subject: Re: validate() is working ! Thanks Patrice! > > Thanks a lot, Patrice. It works now! > > Now I need to solve another question: how can I define the form name on > f

Re: validate() is working !!!!! Thanks Patrice!

2002-11-27 Thread Jim Bruno Goldberg
Thanks a lot, Patrice. It works now! Now I need to solve another question: how can I define the form name on form without use name="TheForm" on ? I need this to use a link likes [Submit]. Do you know how to solve that? Anyone kowns? Thanks a lot, again! Patrice wrote: >

Re: validate() almost working.....

2002-11-27 Thread Patrice
I suppose that's because you have declared a name in your tag that is not corresponds to those on the struts-config.xml file. The attributes "type" and "name" of the tag are deprecated in Struts 1.1. Try to replace: with: Regards Patrice - Original Message - From: "Jim Bruno Goldber

Re: Validate and nightly build problem

2002-11-08 Thread Rob Leland
Michael Delamere wrote: I tried the registration and to me it seemed not to work Unless of course it is normal behaviour that when leaving the fields blank that it takes me to the start screen Yes, that is the behavior. If the field MUST be filled in then in your validator.xml you nee

RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
Message- From: Robert Leland [mailto:rleland@;apache.org] Sent: Freitag, 8. November 2002 16:45 To: Struts Users Mailing List Subject: Re: Validate and nightly build problem Michael Delamere wrote: >Yes, I copied all of the files into my WEB-INF/lib folder > >If there is any more in

Re: Validate and nightly build problem

2002-11-08 Thread Robert Leland
Michael Delamere wrote: Yes, I copied all of the files into my WEB-INF/lib folder If there is any more information you need, I will be glad to provide it Yes, Does the struts-validator example work ? -Rob -- To unsubscribe, e-mail:

RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
List Subject: Re: Validate and nightly build problem Michael Delamere wrote: > Hi, > > I posted a problem yesterday concerning validating forms in several > sub-apps, whereby it only seemed to work for one and not all... this was > using struts1.1b2. > > As suggested, I downloa

Re: Validate and nightly build problem

2002-11-08 Thread Rob Leland
Michael Delamere wrote: Hi, I posted a problem yesterday concerning validating forms in several sub-apps, whereby it only seemed to work for one and not all... this was using struts1.1b2. As suggested, I downloaded the nightly build that you tried today and now validation doesn´t seem to work a

RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
, Michael -Original Message- From: Fabrice BLANQUART [mailto:fblanquart@;covefi.com] Sent: Freitag, 8. November 2002 12:23 To: [EMAIL PROTECTED] Subject: RE: Validate and nightly build problem Hi, I join to this mail the jsp file that cause the problem and the validator.xml. Continuing the

RE: Validate and nightly build problem

2002-11-08 Thread Fabrice BLANQUART
the language fr, it's work. I have also the problem with my IE6 with locale : language=en. Rgs Fabrice -Message d'origine- De : Robert Leland [mailto:rleland@;apache.org] Envoyé : jeudi 7 novembre 2002 18:04 À : Struts Users Mailing List Objet : Re: Validate and nightly bui

Re: Validate and nightly build problem

2002-11-07 Thread Robert Leland
Fabrice BLANQUART wrote: Hi, I have a strange behaviour with the validator using the nightly build (20021107). I use the tag in order to make client validation. It work well with the 1.1B2 but when I use the nightly build it doesn't generate the validateXXX javascript function. Debugging with

Re: validate() in ActionForms

2002-11-07 Thread Postfach 4711
Hello Reinhard, is it possible that your form bean exists in different scopes? Request and Session? Thursday, November 7, 2002, 3:18:39 PM, you wrote: RS> Hi all, RS> we're using Struts 1.1b2 to develop a Web Application. RS> we're having a strange behaviour. One of our Actions (ModifyUser) w

RE: validate() and session expiry

2002-03-05 Thread Matt Read
No problem, I hadn't got around to trying it yet. Thanks for all the help. Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 18:50 To: 'Struts Users Mailing List' Subject: RE: validate() and session expiry matt, I spoke wrong.

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
matt, I spoke wrong. The controller element goes before the message-resources element. Sorry about that, Chuck -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:44 PM To: 'Struts Users Mailing List' Subject: RE: validate() a

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
s usually no need to subclass it. Chuck Cavaness -Original Message- From: Matt Read [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:22 PM To: [EMAIL PROTECTED] Subject: RE: validate() and session expiry Yes, but probably a little too ambitious for me I think. On a related note thoug

RE: validate() and session expiry

2002-03-05 Thread Matt Read
o subclass the ActionServlet and set the processor field in your subclass to the new RequestProcessor? Thanks, Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 16:16 To: 'Struts Users Mailing List' Subject: RE: validate() and sessio

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
t: Tuesday, March 05, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: RE: validate() and session expiry That looks good too but given that you're only allowed to have one per action mapping it would preclude the use of parameter for anything else. It would definitely make DispatchAction difficult to

RE: validate() and session expiry

2002-03-05 Thread Matt Read
could be implemented as requiresSession="true"? Matt. -Original Message- From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] Sent: 05 March 2002 12:57 To: Struts Users Mailing List Subject: RE: validate() and session expiry Matt, I had one other idea that I wanted to share wi

RE: validate() and session expiry

2002-03-05 Thread Ross MacCharles
Here's a partial solution that might work: Submit all of your forms to a "SessionCheck" action. Assuming all is well with the user's login status, etc, SessionCheck would forward control to the "real" action. Invoking the real action would set the usual Struts process into play. struts-conf

RE: validate() and session expiry

2002-03-05 Thread Chuck Cavaness
a lot happier with how the >logic is partitioned now and I like the validate="false" idea very much. > >Thanks, >Matt. > >-Original Message- >From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] >Sent: 05 March 2002 03:01 >To: Struts Users Mailing List &

RE: validate() and session expiry

2002-03-05 Thread Matt Read
rs Mailing List Subject: RE: validate() and session expiry Your problem is slightly different than ours. In our application, the user had to be logged in to go anywhere. This mechanism was a way to catch the problem when a user has already logged in and let's the session timeout. They then i

RE: validate() and session expiry

2002-03-04 Thread Chuck Cavaness
ness [mailto:[EMAIL PROTECTED]] >Sent: 05 March 2002 02:34 >To: Struts Users Mailing List >Subject: Re: validate() and session expiry > > >We had the same issue to deal with. What we did was in our ActionServet >(which subclassed Struts ActionServlet), was to override the >&q

RE: validate() and session expiry

2002-03-04 Thread Matt Read
ailto:[EMAIL PROTECTED]] Sent: 05 March 2002 02:34 To: Struts Users Mailing List Subject: Re: validate() and session expiry We had the same issue to deal with. What we did was in our ActionServet (which subclassed Struts ActionServlet), was to override the "processPreprocess" method, whic

Re: validate() and session expiry

2002-03-04 Thread Bryan Field-Elliot
On Mon, 2002-03-04 at 19:20, Matt Read wrote: I can see a solution where in validation() methods I check that the session is still valid but this seems clumsy to me. Is it good MVC design for the request to be handled by the Model before the Controller gets to see it? Am I incorre

Re: validate() and session expiry

2002-03-04 Thread Chuck Cavaness
We had the same issue to deal with. What we did was in our ActionServet (which subclassed Struts ActionServlet), was to override the "processPreprocess" method, which is called for every request. We checked the session there, instead of in every Action perform method. If the session is expired

Re: Validate question - forwarding to action rather than"input jsp" page

2002-01-31 Thread Brian Holzer
If you want to forward to an action, then specify the action ( input="/actionname.do") instead of a jsp. >>> [EMAIL PROTECTED] 01/31/02 01:27am >>> Hi I want to use the validate functionality in a Form. What I want to know is if an non empty ActionErrors object is returned does it always get

Re: Validate question - forwarding to action rather than "input jsp" page

2002-01-31 Thread Antony Stace
If the user has entered some valid data in the form and I want to save it and pass this to the "" destination specified in the struts-config.xml file how can I save this data and retrive it in the "" destination action? On Thu, 31 Jan 2002 08:06:43 -0500 Ted Husted <[EMAIL PROTECTED]> wrote:

Re: Validate question - forwarding to action rather than "input jsp" page

2002-01-31 Thread Ted Husted
"Validate the properties that have been set for this non-HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages." Emphasis added. http://jakarta.ap

Re: validate() method and session timeout

2001-11-13 Thread Rakesh
Hi Andras, check the struts-example for app.tld.. and the associated . --Rakesh - Original Message - From: "Andras Balogh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 4:18 PM Subject: validate() method and session timeout > > Hi, > > I am using strut

RE: validate() method and session timeout

2001-11-13 Thread Jon.Ridgway
Hi Andras, If you're using Tomcat, an alternative approach would be to use FORM based authentication and secure all pages that require the user to be logged on before they can be accessed. This would resolve your problem as Tomcat would check the users' session status before each request is pro

Re: validate() fails to re-populate the html:form

2001-10-02 Thread Blessing, Jeffrey
Just a follow-up to describe how I fixed the problem below: ===   "Blessing, Jeffrey" wrote:> > I've just recently read the entire thread on this issue posted> last Wed 9/19/01 and still have the following problem:> > When the validate() method of my f

Re: validate() fails to re-populate the html:form

2001-09-24 Thread Ted Husted
Try downloading Struts-simple, and porting the affected classes there. http://husted.com/about/struts/resources.htm#projects Something strange is wrong. It does actually work as documented ;-0 -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 7

RE: validate() interaction with OptionsTag.getIterator(OptionsTag) - NullPointerException

2001-08-16 Thread David Mirly
Yep. That was it. Thanks for the help! David. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: Re: validate() interaction with OptionsTag.getIterator(OptionsTag) - NullPointerException It

Re: validate() interaction with OptionsTag.getIterator(OptionsTag) - NullPointerException

2001-08-15 Thread David Winterfeldt
It looks like you are clearing your list in the reset method of your ActionForm. The first time the form is loaded the list is created in the constructor, but then reset is called and your validation fails so you are sent back to the jsp page again and then list is null. Either don't set list to

Re: validate attribute in ActionMapping

2001-03-27 Thread Craig R. McClanahan
On Tue, 27 Mar 2001, Matthias Bauer wrote: > Hi everybody, > > I am trying to set the default value for validate in the ActionMapping class to > false. So I subclassed ActionMapping and did this in the constructor: > > public ApplicationMapping() > { > super(); >

RE: validate attribute in ActionMapping

2001-03-27 Thread Katarina Nelson
PROTECTED] Subject: Re: validate attribute in ActionMapping That is exactly what I want to avoid. I don't always want to write validate="false" in struts-config.xml. I would like to have the value false to be the default. And I still want to provide a validate() method in the for

Re: validate attribute in ActionMapping

2001-03-27 Thread Matthias Bauer
That is exactly what I want to avoid. I don't always want to write validate="false" in struts-config.xml. I would like to have the value false to be the default. And I still want to provide a validate() method in the form bean, because from some actions I would like to have it validated. Katarin

RE: validate attribute in ActionMapping

2001-03-27 Thread Katarina Nelson
Just write you own validate() method (with no values) in your form bean. Then your own method overwrites the super class? validate method. Or just write "validate=false" in your struts-config.xml file for the corresponding action e.g.: . /Katarina -Original Message- From: [EMAIL PROTECT

Re: "validate" param in web.xml

2001-01-04 Thread Craig R. McClanahan
Mike Campbell wrote:   Is there some reason for the name "validate" in the web.xml file to indicate using the "new" format vs. the old?  Is there more to it than that, because I can't grasp how the term "validate" relates to deciding which version/DTD of the configuration file to use.   It was pr