Re: Why this does not work?

2006-10-16 Thread Walter do Valle
Ok. Thank you David. I already have tried this, and it works. The problem is: FormFile need to be created with correct size. If I have, for example, 3 files, I need to initialize my arquivo variable like this: FormFile[] arquivo = new FormFile[3]. Then in JSP I use indexes like your example.

Re: Why this does not work?

2006-10-16 Thread Walter do Valle
notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Walter do Valle" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday

Why this does not work?

2006-10-16 Thread Walter do Valle
In Struts 1.1 I used something like that to Upload multiple files (undefined number of files). Why does't this work anymore? public class ConcatenarForm extends ActionForm { private FormFile[] arquivo; public FormFile[] getArquivo() { return arquivo; } public void setArq

Multiple file upload

2006-10-13 Thread Walter do Valle
Hello all I'm triying to develop a multi file upload (undefined number of files) using Struts and FileUpload. Because I don't know what how much files will be uploaded, I need to use same field name in my page and create new fields dinamically. My first ideia was to create an indexed property i

Re: Does validwhen has a bug?

2006-10-10 Thread Walter do Valle
I was looking for an information in Struts Validator site and found nothing about. Does validwhen generate client side validation like other rules like integer or intRange? I don't know if validWhen shortcircuits, but if it does, wouldn't you want an "and" there and not an "or"? Dave

Re: Does validwhen has a bug?

2006-10-10 Thread Walter do Valle
s* != null) ) See the example in Struts site: http://struts.apache.org/1.2.9/userGuide/dev_validator.html Dave Newton escreveu: From: Walter do Valle [mailto:[EMAIL PROTECTED] Thried. Does not work. Nuwan Chandrasoma escreveu: ( (tipoDivisao != "I") or (*this* != null) )

Re: Does validwhen has a bug?

2006-10-10 Thread Walter do Valle
Thried. Does not work. This was my first test. Nuwan Chandrasoma escreveu: try this ( (tipoDivisao != "I") or (*this* != null) ) - Original Message ----- From: "Walter do Valle" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 10, 2006 6:36 PM Subject: Does val

Does validwhen has a bug?

2006-10-10 Thread Walter do Valle
Hello all I'm trying to use validwhen from Struts Validator without success. I tried everithing it is possible, but it doesn't work. I have a radio button and a text field. My validation rule is: textfield is mandatory if certain option of my radio is cheked. See below. In other words, if radi

Validwhen does not work

2006-10-09 Thread Walter do Valle
Hello all I'm trying to use ValidWhen from Struts without sucess. I tried everithing is possible, but it doesn't work. I have a radio button and a text field. My validation rule is: textfield is mandatory if some option of my radio is cheked. See bwlow. Is there something wrong? Any help is w