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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
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
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
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
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
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
27 matches
Mail list logo