Re: Req on

2006-05-23 Thread The Jasper
Hi, I'm not quite sure how you'd do it, but it seems like you could use logic tags to do this. something like: Hi Javascript...the right way one change of the one select combo box call some function which will fill up the othercombo box. U can search on google for such code. regard

Re: Harsh: Issue with float validation instruts validator

2006-05-24 Thread The Jasper
Near as I can tell a float s evaluated as Float(value). So, looking in the java specs we see that a float needs a 'decimal point, an exponent, or a float type suffix '. see http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#230798 for more information. As for the validwhen, th

Re: Validation for second field must greater than the first field

2006-05-26 Thread The Jasper
Hi, I just happened to be working on this problem myself. I wrote a validator: public class dateValidation implements Serializable { private static final Log log = LogFactory.getLog(dateValidation.class); /* checks two date fields to see if the second field isn't earlier th

Re: Validation for second field must greater than the first field

2006-05-26 Thread The Jasper
Of course my code *doesn't* work, but I'll leave the reason why as an exercise for the reader ;} mvg, Jasper On 5/26/06, The Jasper <[EMAIL PROTECTED]> wrote: Hi, I just happened to be working on this problem myself. I wrote a validator: public class dateValidation impleme

Re: validation with validwhen

2006-05-26 Thread The Jasper
Hi, from http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html we learn that: If both items to be compared are convertable to ints, a numeric comparison is done, otherwise a string comparison is done. so since about any string is >= you will almost always get a valid check. I

Re: How to lock the access of methods within an action?

2006-05-30 Thread The Jasper
Hi, this sounds like a common database problem. You might want to consider some kind of pessimistic locking. Basically you lock the object when you start editing and prevent all access to it for the duration of the lock. You could also do an optimistic lock which means that when you change an obj

Re: Help:validation is not working with struts1.2

2006-05-30 Thread The Jasper
Hi, try changing the validation to: note, you are now referencing the action not the page. Also, you might want to extend ValidatorActionForm instead of ValidatorForm, but to tell the truth I'm not sure I really understand the difference. You don't need the key field

Re: Problem in a action

2006-06-07 Thread The Jasper
Validate requires an input attribute in order to know what page to return to when validation fails. mvg, Jasper On 6/7/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hi: I have an error when i try launch an action of struts: No input attribute for mapping path /cof

Re: JSP error using struts 1.1

2006-06-08 Thread The Jasper
Hi, I used to have this error as well. Its a warning from Eclipse, right? If so, just ignore it. mvg, Jasper On 6/7/06, Olivier Bex <[EMAIL PROTECTED]> wrote: Hi everyone, Using struts 1.1 with eclipse 3.1 and myeclipseIDE I have an error with a JSP page : "Failed to load or instantiate Ta

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread The Jasper
What isn't working? Is it not validating properly? Are you getting some type of exception? Does it accept everything? You can alway check the source code of FieldChecks to find out what it is doing. mvg, Jasper On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote: Hi all, I am tryin

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread The Jasper
hi, It looks fine to me. It sort of sounds like validation is not happening at all. Maybe there is a problem in your form or jsp. Or you coulld try updating to the latest version of Validator/struts if yuo haven't allready. mvg, Jasper On 6/8/06, antony.paul <[EMAIL PROTECTED]> wrote: Hi

Re: Validation not working for 'double' with Struts 1.2

2006-06-08 Thread The Jasper
always pass the double validation (but fail integer validation :-) For this to work you need to define the property in your ActionForm as a String, not a Double. oops, missed that :} mvg, Jasper - To unsubscribe, e-mail: [EMAI

Re: check invalid date with validator framework

2006-06-12 Thread The Jasper
On 6/9/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: Is there a way to check if the date is a valid date in the validator framework. If I enter a invalid date such as 67/06/2006 it returns me the error message Created Date is not a valid date format (dd/mm/). Which is the error.date in my

Re: sessions

2006-06-12 Thread The Jasper
hi, You could use a login filter. Have the filter check if they are logged in via a session attribute. If the person is logged, then fine. Otherwise redirect to the login page. On logging in you set the session attribute. Now just set the web.xml so that everything has to go through the login fil

Re: sessions

2006-06-13 Thread The Jasper
hi, I would suggest a filter. You won't have to tag each page that needs to be in session. mvg, Jasper On 6/13/06, Abhimanyu Koul <[EMAIL PROTECTED]> wrote: hi all! can anyone tell me which approach is better for session validation in a struts application creating a custom jsp tag and using

Re: Validation a specific element in an String []

2006-06-22 Thread The Jasper
Hi, so you have 2 textboxes and one of them is required, which is what you want to validate. The problem is that they have the same name, I assume. The obvious solution in that case would be to give them different names, but I'm not sure I understand the question. mvg, Jasper On 6/21/06, lingan

Re: how to validate when the form-property is of type="java.lang.String[]"

2006-06-22 Thread The Jasper
Hi, So...how are you putting them on the form. I assume you some form of iterative tag to put them on a form. There is probably a better solution, but you could write a custom validator, or validate() method to do what you want. I had to do this for a similar situation, but I had at least 2 level

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread The Jasper
hi, the validwhen validator can do what you want. mvg, Jasper On 6/22/06, Truong Xuan Tinh <[EMAIL PROTECTED]> wrote: Hi there, You can write a custom validator in Struts to do that, it's rather easy, both client-side and server-side. Open the jar of commons-validator to see some script for exi

Re: validating checkbox

2006-06-22 Thread The Jasper
hi, have you tried the required validator? mvg, Jasper On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dear all, How can I validate atleast one checkbox should be selected b4 form submited. I am using html:multibox. regards, Mansoor -

Re: validating checkbox

2006-06-22 Thread The Jasper
per On 6/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi jasper, S I have tried with required validator. It s not working. regards, Mansoor -Original Message- From: The Jasper [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 1:30 PM To: Struts Users Mai

Re: Struts Validator: form value1 < form value2

2006-06-22 Thread The Jasper
o it. anyway these antlr expressions are not very intuitive. If You have a problem let me kow i will try to help 2006/6/22, The Jasper <[EMAIL PROTECTED]>: > > hi, > the validwhen validator can do what you want. > > mvg, > Jasper > > On 6/22/06, Truong Xuan Tinh <[E

Re: validating checkbox

2006-06-22 Thread The Jasper
On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: With multibox, all the checkboxes have the same name: A B So if none are checked, the property in the ActionForm will be String[0]. If there's a way of checking array lengths in the validwhen validator, that's all he should need, but I d

Re: How to call a method from struts tag

2006-06-23 Thread The Jasper
hi, depending on what you are checking, wouldn't some form of logic tag suffice? mvg, Jasper On 6/23/06, Lance Semmens <[EMAIL PROTECTED]> wrote: Can you do this in you action then have an isEnabled() method on your component? Pankaj Gupta wrote: > Hi All, > > I want to call a method of an ob

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
Hi, shot in the dark here, but have you tried datePatternStrict instead of datePattern? mvg, Jasper On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote: Hello All, I posted today the message below, unfortunately without any success. May be can somebody tell me if it is at all possible

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
ect, it seems so, but whether or not, I am not sure. mvg, Halgurt PS:I appreciate your help, many thanks:-) -Ursprüngliche Nachricht- Von: The Jasper [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Juni 2006 17:11 An: Struts Users Mailing List Betreff: Re: Date Validation on the Clients sid

Re: Validate just certain fields

2006-06-27 Thread The Jasper
HI, You can write your own validate function or you can use the validation framework. In any case no validation is performed on any field unless you specify it. see http://struts.apache.org/struts-action/faqs/validator.html for further details. mvg, Jasper On 6/26/06, Jennifer Jacobs <[EMAIL PR

Re: Date Validation on the Clients side

2006-06-27 Thread The Jasper
ce. Are you interessted in having such a validation on the clients side. Best regards, Halgurt -Ursprüngliche Nachricht----- Von: The Jasper [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. Juni 2006 17:50 An: Struts Users Mailing List Betreff: Re: Date Validation on the Clients side hi, Looking a