RE: Validation in struts

2004-09-15 Thread Divya B Sridhar
Hi Jitender,

I guess it is "import org.apache.struts.validator.ValidatorForm"
I have extended this as well.

What should be done to show an error message box instead of showing  it
on top of the page ? I am sure I am missing something :)

Thanks,
Divya.

-Original Message-
From: Jitender K Chukkavenkata [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 6:40 PM
To: Struts Users Mailing List
Subject: RE: Validation in struts


Hi Divya,
   I think   you need to extend your form class with 
org.apache.struts.validator.action.ValidatorForm or ValidatorActionFrom 
instead of org.apache.struts.action.ActionForm. 

have u done it?

Regards,
Jitender.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validation in struts

2004-09-15 Thread Divya B Sridhar
Hi Jitendar,

Thanks for your help.

I am using the validator framework now and I see that when I click the
"submit" button, it does the validation and comes back with the error
message on top of the page but does not pop-up a messagebox. I would
want to prompt for a message box if, say a particular mandatory field is
missed.

- Now, I am using  also after the  tag.
- edited validation.xml to have the field names.
- included the validator plugin in my struts-config.xml
- included errors.required in my application properties file.
- included onsubmit function in my html:form to point to
validate(this)

Is there something else that I am missing ?

Thanks,
Divya.

-Original Message-
From: Jitender K Chukkavenkata [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 9:51 AM
To: Struts Users Mailing List
Subject: Re: Validation in struts


U can use struts validations framework as well   go thru struts 
validation framework..
Jitender Kumar C.V.
IBM Global Services India (Pvt.) Ltd., 
Embassy Golf Links Business Park, Block C, 
Bangalore - 560 071. 
Phone : + 91 (80) 51056320
Mobile:  + 91 9886219429
Location : EGC-3*-058.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validation in struts

2004-09-14 Thread Divya B Sridhar
Greg,

Thanks for your response.
Is this validator framework supported for struts 1.1 since I use struts
1.1 for my application.

Thanks,
Divya.

-Original Message-
From: Greg Ludington [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 15, 2004 10:11 AM
To: Struts Users Mailing List
Subject: Re: Validation in struts


> It is said that the validation(client side validations like say a 
> particular textbox field can contain numbers only etc) should not be 
> explicitly written in client-side validation javascripts in a struts 
> framework. How can such things be accomplished using struts without 
> writing specific client-side validation javascripts functions on the 
> jsp page? Any help is greatly appreciated.

You will want to read up on the Validator framework.  When you use the
Validator, you configure rules about your form in an XML file.  Struts
will use those rules to perform server-side validation, but, for many
basic types of validation, Struts can also (optionally) emit the proper
javascript for client-side validation.  You can still write your own
javascript, if you need to or want to, but for many validation tasks --
including the "can contains numbers only" scenario you mentioned --
Struts will do it for you.

You can find a HOWTO guide on the Validator on the Struts site here:
http://struts.apache.org/userGuide/dev_validator.html

Also, I believe the Struts distribution ships with a validator example.

-Greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation in struts

2004-09-14 Thread Divya B Sridhar
Hi All,
It is said that the validation(client side validations like say a particular
textbox field can contain numbers only etc) should not be explicitly written
in client-side validation javascripts in a struts framework. How can such
things be accomplished using struts without writing specific client-side
validation javascripts functions on the jsp page? 
Any help is greatly appreciated.
 
Thanks,
Divya.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: convert locamachine serverpath to universal clientpath he can download it and play very very urgent please

2004-05-12 Thread Divya B Sridhar
Please send one mail - it will suffice to address the group.
Is everyone getting these mails multiple times???


-Original Message-
From: ganesh g [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 6:08 PM
To: Struts Users Mailing List
Subject: convert locamachine serverpath to universal clientpath he can
download it and play very very urgent please


Hi friends,
You are right But i'm placing in another drive 

c:\clientsData\client1\client1 huge PersanalData..

c:\clientsData\client2\.client2 huge PersanalData..

c:\clientsData\client3\.client3 huge PersanalData..
It's a large data.So i'm not allowed to place them in webapps 
directory.
>From there itself i've give data to clients.So i want another solution
in detail please.
 
Please help me Urgent
Ganesh
 
 


"Rosenberg, Leon" <[EMAIL PROTECTED]> wrote:This is not a 
struts question, but, put your file in the context of your web-app -> 
.../webserver/webapps/your-web/audioFiles/sample.wav and reference it in

the jsp as /audioFiles/sample.wav



> -Ursprüngliche Nachricht-
> Von: ganesh g [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 12. Mai 2004 14:16
> An: user
> Cc: user
> Betreff: convert locamachine serverpath to universal clientpath he
can
> download it and play very very urgent please
> 
> Hi List,
> 
> i need ur help very urgent.
> 
> 1)
> My audio file path in my server is as follows:
> 
> "c:\audioFiles\sample.wav"
> 2)
> i wrote javascript code snippet in a jsp file to play that audio file 
> where i'm sending my server path("c:\audioFiles\sample.wav") to play 
> audio.But client is not able to play the audio file.Here when a
client
> clicks on 'Play' button, audio should play.i.e.,'download' sould 
> automatically happen internally without displaying the download
dialogue
> box.
> 
> What my serious problem is how to send my server path to all clients
so
> that they can play it.How to convert this path into Universal path or
Url
> path.
> 
> Are there any methods or tricks??
> i'm using struts ...
> Pls help me. Urgent..
> 
> Advance thanks
> Ganesh



-
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: convert locamachine serverpath to universal clientpath he can download it and play very very urgent please

2004-05-12 Thread Divya B Sridhar
Please send one mail.
And, please don't flood our mail boxes.

-Original Message-
From: ganesh g [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 5:46 PM
To: user
Cc: user
Subject: convert locamachine serverpath to universal clientpath he can
download it and play very very urgent please


Hi List,
 
i need ur help very urgent.
 
1)
My audio file path in my server is as follows:
 
"c:\audioFiles\sample.wav"
2)
i wrote javascript code snippet in a jsp file to play that audio file
where i'm sending my server path("c:\audioFiles\sample.wav") to play
audio.But client is not able to play the audio file.Here when a client
clicks on 'Play' button, audio should play.i.e.,'download' sould
automatically happen internally without displaying the download dialogue
box.
 
What my serious problem is how to send my server path to all clients so
that they can play it.How to convert this path into Universal path or
Url path.
 
Are there any methods or tricks??
i'm using struts ...
Pls help me.  Urgent..
 
Advance thanks
Ganesh



-
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]