Re: Submit with a link

2004-05-05 Thread Henrique VIECILI
you can use javascript to do this job... like this: Enviar Formulário where is the index of the form you want to submit (starts in 0 - zero) Henrique Viecili - Original Message - From: "cacau_braga" <[EMAIL PROTECTED]> To: "user" <[EMAIL PROTECTED]>

Re: Error while starting Tomacat!!

2004-05-07 Thread Henrique VIECILI
White spaces are required after keyword PUBLIC in DOCTYPE declaration in some xml (struts-config.xml or web.xml) Henrique VIECILI ps.: Did you read the stack trace? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 07, 2004 7:19 AM Su

Validator - not passing params to message

2004-05-18 Thread Henrique VIECILI
dation.xml ... ... minlength 6 ... ... Debugging my application I realized that the Object[] passed as param to ActionMessage() has only the first [0] value different from null (in this case, "Password"). Henrique Viecili

Re: how to create a MessageResouces

2004-05-18 Thread Henrique VIECILI
Properties object Properties props = new Properties(); props.load(new FileInputStream(new File("path_to_appResoureces.properties"))); []´s Henrique Viecili - Original Message - From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]> To: "'Struts Users Mai

Re: Validator - not passing params to message

2004-05-18 Thread Henrique VIECILI
gt; > 2) > > ---> Password > ---> 6 > > minlength > 6 > > ... > > > > > - Original Message - > > From: "Henrique VIECILI" <[EMAIL PR

Re: validate numeric

2004-05-20 Thread Henrique VIECILI
Hi Julia, You can use javascript and/or server-side validation: javascript: isNaN(field.value); //verify if the value 'is not a number' server side: (there are many ways) try { Double.parseDouble(getField()); } catch (NumberFormatException nfe) { // if this exception is thrown the valu

Re: Simple Validator regex needed

2004-05-20 Thread Henrique VIECILI
^[\\d | \\s | \\. | \\-]*$ tested with java.util.regex Henrique Viecili - Original Message - From: Tim Penhey To: Struts Users Mailing List Sent: Thursday, May 20, 2004 1:35 PM Subject: RE: Simple Validator regex needed > From: Eric Dahnke [mailto:[EMAIL PROTECTED] > Sent:

Re: tag

2004-05-21 Thread Henrique VIECILI
want to do, would be more interesting to use some kind of SIGNED Applet or ActiveX Control. Explain what you wanna do and I can give you a better clue. Henrique Viecili - Original Message - From: praveen kulkarni To: [EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:55 AM Subj

Re: How to get length of an array(collection)

2004-05-24 Thread Henrique VIECILI
Hi Ding! You can try this: You may look into struts-bean API documentation to understand how this tag works. []´s Henrique Andrade Viecili - Original Message - From: Ding Lei To: [EMAIL PROTECTED] Sent: Saturday, May 22, 2004 2:44 AM Subject: How to get length of an array(

Re: nl2br equivalent?

2004-05-25 Thread Henrique VIECILI
Ok, there isn´t an 'incredibly useful nl2br' but there is a 'marvelous regex-based method' to do this using Java: String nl = "String with \n new line"; String br = nl.replaceAll("\n",""); or you can try using Commons Lang and cc-* t

Re: message resource problems

2004-05-26 Thread Henrique VIECILI
how do you declared this resource in your struts-config.xml ?? (place the code) Henrique Viecili PS.: Maybe your question is answered in the message titled 'Can I have multiple ApplicationResources from the same locale?' - Original Message - From: ksitron To: St

Re: Tag

2004-05-27 Thread Henrique VIECILI
in 'constituencies', then you should use the 'collection' to specify the collection with labels and/or values. Try this: where 'property' will render the 'value' attribute of and 'labelProperty' will render the value shown to the use

Re: only with bean?

2004-05-28 Thread Henrique VIECILI
this too: (I´m not sure it works) struts-config.xml in MyForm there is a method (getValuesAndLabels()) returning a collection containing beans holding the label (getLabel()) and value (getValue()) for each option. Then: , or maybe: Just thoughts, Henrique Viecili - Original Message

Undeliverable Message

2004-05-28 Thread Henrique VIECILI
Hi all,   every time I send a message to the [EMAIL PROTECTED] I receive the message bellow. I´d like to know if you guys are receiving this message too.   Regards,   Henrique Viecili     - Original Message - From: System Administrator To: viecili Sent: Friday, May 28, 2004 8:53 AM

Re: Undeliverable Message

2004-05-28 Thread Henrique VIECILI
Ok, then the list moderator could take some attitude to avoid this, ok?! Henrique Viecili - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List Sent: Friday, May 28, 2004 9:30 AM Subject: Re: Undeliverable Message Yes so do I. "Henrique VI

Re: only with bean?

2004-05-28 Thread Henrique VIECILI
getLabel() and getValue() Henrique Viecili - Original Message - From: Samuel Rochas To: Struts Users Mailing List Sent: Friday, May 28, 2004 2:47 PM Subject: Re: only with bean? Hello Henrique, Thanks for your answer. Your solution suppose I maintain two lists of

Re: HTTP header for dynamic pdf and IE6

2004-06-04 Thread Henrique VIECILI
e.getOutputStream(); out.write(data); out.flush(); out.close(); Ok, i´m sure it works with Acrobat4+ and IE5+. I did not tested in Linux and other browsers. Henrique Viecili - Original Message - From: Dean A. Hoover To: [EMAIL PROTECTED] Sent: Friday, June 04, 2004 9:37 AM Su

Re: Taglib: how do you call a method like java.util.List.size() from the property of a tag?

2004-06-07 Thread Henrique VIECILI
Hi Riyad, here is a simple example: BTW, you are doing a very good job on MyEclipseIDE Team! Henrique Viecili - Original Message - From: Riyad Kalla To: Struts Users Mailing List Sent: Saturday, June 05, 2004 9:15 PM Subject: Taglib: how do you call a method like

Re: Putting Multiple Parameters in the Request

2004-06-08 Thread Henrique VIECILI
more parameter ids and corresponding values." At struts-doc you will find out how to do this. Henrique Viecili - Original Message - From: Kies, Daniel To: '[EMAIL PROTECTED]' Sent: Tuesday, June 08, 2004 4:52 PM Subject: Putting Multiple Parameters in the

[Semi-OT] Incompatible object argument for function call

2004-06-09 Thread Henrique VIECILI
object argument for function call Does anyone know what does it mean? I have searched google and it says that the container is creating the instance of my.pkg.MyBean incorrectly, but it seems a *little* weird. I am using Tomcat 4.1.27 Henrique Viecili

[SOLVED] [Semi-OT] Incompatible object argument for function call

2004-06-09 Thread Henrique VIECILI
Viecili - Original Message - From: Henrique VIECILI To: Struts Users Mailing List Sent: Wednesday, June 09, 2004 2:29 PM Subject: [Semi-OT] Incompatible object argument for function call Hi All, I use a bean in the application scope doing like this: then i set some

using java.util.Map

2004-06-15 Thread Henrique VIECILI
Does anyone know howto use the tag with the values and label inside a Map? I´ve tried this: but it didnt work... Any sugestions?! Henrique Viecili

Re: using java.util.Map

2004-06-15 Thread Henrique VIECILI
uot;Santa Catarina"); states.put("PR","Paraná"); and i want to render something like this on my html Rio Grande do Sul Santa Catarina Paraná I guess that is it, Henrique Viecili - Original Message - From: Barnett, Brian W. To: 'Struts Users

Re: using java.util.Map

2004-06-15 Thread Henrique VIECILI
Ok, thanks. I just thought that could be some way of doing this with java.util.Map instead of any collection. Henrique Viecili - Original Message - From: Barnett, Brian W. To: 'Struts Users Mailing List' Sent: Tuesday, June 15, 2004 3:44 PM Subject: RE: using jav

Re:[SOLVED] using java.util.Map

2004-06-16 Thread Henrique VIECILI
urns a Set (collection) of Map.Entry wich is like a bean, with methods getKey() and getValue(), so i can use it normally with . Thank you all for the contributions, Henrique Viecili - Original Message - From: Ron Grabowski To: struts Sent: Wednesday, June 16, 2004 12:11 AM S

Re:

2004-06-21 Thread Henrique VIECILI
You must initialize the correspondent variable in ActionForm (inside 'reset' method) with the value you want to be checked, Struts will render the checked 'automagicly'. Henrique Viecili - Original Message - From: Asim Ghosh To: StrutsUsers Sent: Monday, J

Re:

2004-06-21 Thread Henrique VIECILI
uot;M"; if you like, you can set the default value inside the reset method too. Henrique Viecili - Original Message - From: Asim Ghosh To: Struts Users Mailing List Sent: Monday, June 21, 2004 8:31 AM Subject: Re: hello Henrique, can you give me an example...

[OT] Authenticating Client with

2004-06-24 Thread Henrique VIECILI
it shows me the server certificate but doesnt ask for the client certificate. Somebody can give me some light on this?! And, later, how to know the client certification attributes after authentication? Thanks, Henrique Viecili

Re: Recommend Struts Plugins for Eclipse?

2004-06-25 Thread Henrique VIECILI
You can try www.myeclipseide.org Henrique Viecili - Original Message - From: Shabalov, Igor To: Struts Users Mailing List ; e-denton Java Programmer Sent: Friday, June 25, 2004 2:31 PM Subject: RE: Recommend Struts Plugins for Eclipse? Struts Studio. The best

Re:[OT] Getting the values from Popup window to Parent window if Multiple text fields in parent window

2004-06-30 Thread Henrique VIECILI
the modal. Henrique Viecili - Original Message - From: Srinivas Rao To: Struts Sent: Wednesday, June 30, 2004 7:12 AM Subject: Getting the values from Popup window to Parent window if Multiple text fields in parent window Hi guys, I am facing samll problem , it

Re: Upload multiple files at once

2004-07-01 Thread Henrique VIECILI
Hi Deepak, You should create a field in your ActionForm of type FormFile[]. But, i´m not sure, still there is a bug in struts when you upload multiple files and you have to change the code, if you change google you will find it! Henrique Viecili - Original Message - From

Re: Upload multiple files at once

2004-07-01 Thread Henrique VIECILI
'change' google would be a great job that should not be done!!! you can SEARCH google (or i could simply use the verb 'to google') Henrique Viecili - Original Message ----- From: Henrique VIECILI To: Struts Users Mailing List Sent: Thursday, July 01, 2004 8

Re: Returning an ActionError from an Action?

2004-07-01 Thread Henrique VIECILI
use the method saveErrors(ActionErrors); In you Action: ActionErrors errors = new ActionErrors(); // validation errors.add("property", new ActionError("key")); saveErrors(errors); Henrique Viecili - Original Message - From: [EMAIL PROTECTED] To: Strut

Re: Why

2004-07-02 Thread Henrique VIECILI
I think it will work: XX or in javascript: document.getElementById("xxx").disabled = 'true'; Henrique Viecili - Original Message - From: Kris Schneider To: Struts Users Mailing List Sent: Friday, July 02, 2004 1:16 PM Subject: Re: Why http:/

Re: Message Resources Confusion

2004-07-05 Thread Henrique VIECILI
for error messages, notice the use of bundle in Henrique Viecili - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 05, 2004 12:23 PM Subject: Message Resources Confusion Greetings, I am somewhat unclear with the Message Resources.

Taglib to convert text into HTML

2004-07-08 Thread Henrique VIECILI
Hi all, is there any struts or non-struts taglib wich converts normal text into HTML? I want to add after each new line one to present correctly some text typed in a textarea in previous page. Thanks, Henrique Viecili

Re: Taglib to convert text into HTML

2004-07-08 Thread Henrique VIECILI
Thanks Niall, I downloaded the Lang2.0 but i couldn´t find any .tld files to download (specially string.tld). Do you know where to download these files? They don´t come with distro. Henrique Viecili - Original Message - From: Niall Pemberton To: Struts Users Mailing List Sent

Re: Getting the values from Popup window to Parent window if Multiple text fields in parent window

2004-07-08 Thread Henrique VIECILI
If your filefields have all the same id or name you will get an array of them, then you should access them like an array. By example: HTML: File 1: ... File n: JAVASCRIPT var files = document.getElementById("myFile"); for( i = 0; i < files.length; i++) alert(files[i].valu

Best Free Plugins for Eclipse with Struts

2004-07-15 Thread Henrique VIECILI
Hi all Eclipse and Struts fans, What free plugins for eclipse 3 do you recommend to build a complete enviroment to develop J2EE applications using Struts? A complete enviroment includes: UML modeling DataBase connection J2EE development Struts framework Thanks, Henrique Viecili

Re: [OT] Good luck Dream Team

2004-08-30 Thread Henrique VIECILI
Gonzalez Pearson To: Struts Users Mailing List Sent: Monday, August 30, 2004 4:27 PM Subject: Re: [OT] Good luck Dream Team Uruguay = 2nd place Italia = 3rd place IRAK = 4th place BRASIL = ... OUT ? .. LOL - Original Message - From: "Henrique VIECILI&quo

Re: Adding Tags Dynamically

2004-09-08 Thread Henrique VIECILI
;; newInput.name = "values"; container.appendChild(newInput); } After submitting the page you can access the values array containing all the fields values. Henrique Viecili - Original Message - From: Hadeel Rashad To: 'Struts Users Mailing List' Sent: W

Re: J2EE application - Upload one or more files on client to server

2004-09-09 Thread Henrique VIECILI
Well, this is what we call CROSS-POSTING - Original Message - From: Dao Xuan Nam To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Thursday, September 0

Re: [OT] Java Charting API's

2004-09-09 Thread Henrique VIECILI
Henrique Viecili - Original Message - From: Seaman, Sloan To: 'Struts Users Mailing List' Sent: Thursday, September 09, 2004 9:49 AM Subject: [OT] Java Charting API's Sorry to go off topic, but can anyone suggest a good free charting package for Java?

Re: [FRIDAY] GMail invites

2004-09-10 Thread Henrique VIECILI
Well, if some invitation has left at this moment, I am interested on it... Thanks, Henrique Viecili - Original Message - From: Matt Bathje To: Struts Users Mailing List Sent: Friday, September 10, 2004 12:48 PM Subject: Re: [FRIDAY] GMail invites The invitation rules

[CURIOUS-OT] 44 bytes in notepad txt file

2004-09-14 Thread Henrique VIECILI
nly occurs when the file is 44 bytes long. Java reads the file normally. Maybe something to do with character encoding?! but does notepad handle character encodings?? Does anyone here knows whats going on? Henrique Viecili

Re: German Umlaute

2004-09-16 Thread Henrique VIECILI
I don´t think it worth the effort but you can encode the string in base64 and it will work for sure!! Henrique Viecili - Original Message - From: Philipp Roethl To: [EMAIL PROTECTED] Sent: Thursday, September 16, 2004 5:01 PM Subject: German Umlaute Hi, I.m currently

Re: Browser page break with ms/word myme [pt_br]

2004-10-07 Thread Henrique VIECILI
. Henrique Viecili - Original Message - From: Paulo Alvim To: [EMAIL PROTECTED] Sent: Thursday, October 07, 2004 6:19 AM Subject: Browser page break with ms/word myme Hi! I've read that the easier way to print using page break and Browser is to send the ordinary text

Vector of array in session

2004-10-26 Thread Henrique VIECILI
ave a solution? Henrique Viecili

Re: Vector of array in session

2004-10-26 Thread Henrique VIECILI
Pemberton To: Struts Users Mailing List Sent: Tuesday, October 26, 2004 9:56 AM Subject: Re: Vector of array in session Try Niall - Original Message - From: "Henrique VIECILI" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAI

Re: Vector of array in session

2004-10-26 Thread Henrique VIECILI
- Original Message - From: "Henrique VIECILI" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 2:20 PM Subject: Re: Vector of array in session It threw javax.servlet.ServletException: Cannot

html:rewrite question

2004-04-12 Thread Henrique VIECILI
Hi, I need to pass 2 parameters in the html:rewrite tag but i didn´t find out the correct sintax. Can anyone help me? []´s Henrique Viecili - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: html:error and quotation marks...

2004-04-20 Thread Henrique VIECILI
have you tried changing your ApplicationResources to err.name.required=The {0} field is required (whitout the quotes') ? it should work. []´s Henrique Viecili - Original Message - From: "bOOyah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Apr

Re: and co

2004-04-22 Thread Henrique VIECILI
Hi Marc, if you have a collection, it would be nice to use the tag, which iterates over a collection rendering tags (you shall place inside or to make sense) in your case: i guess it will work! []´s Henrique Viecili - Original Message - From: "Marc Tinnemeyer" <[EM

Re: and co

2004-04-22 Thread Henrique VIECILI
objects from the collection that all have > the same "property"-field. > > Marc > > > > On Thu, 22 Apr 2004 11:52:39 -0300 > "Henrique VIECILI" <[EMAIL PROTECTED]> wrote: > > > Hi Marc, > > > > if you have a collection, it would be nice

Re: Displaying Error Message on Top

2004-04-22 Thread Henrique VIECILI
or you can do this: in the Validation: errors.add(new ActionError("topForm","app.resource.str")); //for the top form errors.add(new ActionError("bottomForm","app.resource.str")); //for the bottom form in JSP: //put above topForm //put abo

Re: how to do "

2004-04-23 Thread Henrique VIECILI
use the same name you assigned to the form in struts-config.xml form-bean in struts-config.xml in the jsp file note the form.myForm must be assigned to the action in the Henrique Viecili - Original Message - From: "Julia Weaver" <[EMAIL PROTECTED]> To: "Stru

Re: html:select ???

2004-05-12 Thread Henrique VIECILI
Ae Alessandro, Na ActionForm que contem este campo, vc deve inicializar o valor da propriedade 'numAgencia' com o valor que vc deseja que esteja selecionado inicialmente na sua combo (no seu caso: numAgencia = 61 ) Abraços, Henrique Viecili - Original Message - From: &q

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

2004-05-12 Thread Henrique VIECILI
*Don´t flood our mailboxes* If I had the answer I would not collaborate because you are flooding... XP Thanks Henrique - Original Message - From: "ganesh g" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, May 12, 2004 9:37 AM Subject: convert loc

[OT] Rtf2Pdf

2004-05-11 Thread Henrique VIECILI
Hi, Does exist a free solution in Java to convert rtf documents to pdf documents (using XSL:FO and FOP - or not), or the only one is the www.rtftofo.com ? []´s Henrique Viecili - To unsubscribe, e-mail: [EMAIL PROTECTED] For

[OT-GMAIL] Any invite availeable

2004-11-28 Thread Henrique VIECILI
Hi, sorry for this bogus email, but does anyone have some extra gmail invite to give me? if so... please send to [EMAIL PROTECTED] thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [OT-GMAIL] Any invite availeable

2004-11-28 Thread Henrique VIECILI
Thank you Sudhakar Henrique VIECILI wrote: Hi, sorry for this bogus email, but does anyone have some extra gmail invite to give me? if so... please send to [EMAIL PROTECTED] thanks