Re: accessing collections without iterating.

2004-08-21 Thread Antony Paul
I dont want(In fact I can't) create a new class file for this. I just wanted to know if it is possible. This is not a pure Struts project and using some Java is not a problem. Thanks for the replies. In next project I will use a wrapper class which extends ArrayList with a method as Michael

Unable to set the radio butons value using form beans

2004-08-21 Thread jacob skariah
Hi , Can any body tell me how to retrive and set the value for the radio buttons.Using the form Beans. what i am doing now is if i want to display the values o the jsp page. I fetch the data from database manually populate the form bean and send it to the jsp page. and all the feilds are

RE: Unable to set the radio butons value using form beans

2004-08-21 Thread Amit Kumar Sharma
Check the type for it. Java.lang.Boolean It should work. Warm regards Amit -Original Message- From: jacob skariah [mailto:[EMAIL PROTECTED] Sent: Saturday, August 21, 2004 12:04 PM To: [EMAIL PROTECTED] Subject: Unable to set the radio butons value using form beans Hi , Can any body

multi file upload

2004-08-21 Thread Stefan Groschupf
Hi, I'm searching for a solution to have a multi file upload page. Since it is not possible to load a set of file with one forms, I'm searching for the best workaround. My scenario; I have a html-form and the user can fill out a set of html form fields, e.g. Name, Address etc. I wish to to have

Newbie Validator Basic Configuration

2004-08-21 Thread Chris Stavrianou
Hi, I am attempting to use Validator with DynaValidatorActionForms - but can't get the Validator Plugin to work. Even the most basic form refuses to validate - please help. I have followed all FAQ - Mailing lists and books that I can find. Please find following relevant sections from

Asunto: html:reset does not clear all on the page ?

2004-08-21 Thread Guillermo Meyer
The html:reset button restores the input values to the values that are specified in the value property. For example, if you have the following inputs in an html page: input type=text name=abc1 value=Hello/ input type=text name=abc2 value=/ input type=reset/ the user can change the values of

RE: Newbie Validator Basic Configuration

2004-08-21 Thread Matthias Wessendorf
DynaValidatorActionForm is for forms, that contain more than *one* page (like a wizzard or a poll) in validation.xml you must enter on name attribute the PATH of the action - name=/submit1... but I guess you want a Validator for a single page so use DynaValidatorForm now in vali.xml you must

How to set up 'userProfile' bean in session for ProcessAction?

2004-08-21 Thread struts Dude
Hi How would I set up to add a userProfile form object in my struts-config.xml and store user info in it so that ProcessAction from Scaffold will merge information coming from the request form (ActionForm) and the userProfile form and pass them to the execute method of my business bean

Re: multi file upload

2004-08-21 Thread struts lover
Hi, I have done the same thing. I have an arraylist of formfile objects. I keep it in session. If you dont want to keep it in session, you might keep it in some temp folder on the server. But I would suggest to keep in the session, and after you complete your transaction, clean up the session. You

RE: Unable to set the radio butons value using form beans

2004-08-21 Thread struts lover
Check this link. http://husted.com/struts/tips/016.html --- Amit Kumar Sharma [EMAIL PROTECTED] wrote: Check the type for it. Java.lang.Boolean It should work. Warm regards Amit -Original Message- From: jacob skariah [mailto:[EMAIL PROTECTED] Sent: Saturday, August 21, 2004

Re: multi file upload

2004-08-21 Thread Stefan Groschupf
I have done the same thing. I would be interested how you had realize the ActionForm getter and setter. You handle the files every time a user press the load up this file button? Thank you very much! Stefan - To unsubscribe,

Re: null with Action Error Messages !!

2004-08-21 Thread struts lover
Check for the errors.header and errors.footer. Also you can check if you using {0} in your properties file error message for password. And if yes, are you passing the parameter from your validation.xml --- jacob skariah [EMAIL PROTECTED] wrote: Hi, I have given the error messages in my

Re: multi file upload

2004-08-21 Thread struts lover
My implementation is slightly different. I created an object of FileData with fields like formfile,filename etc. When you first paint the jsp, your action class would create a FileData object and put it into the arraylist defined in your action form. I have a button called ADD ANOTHER FILE. When

JAAS, JBoss and Struts review. Erik, now i get the point !!!

2004-08-21 Thread Leandro Melo
Hi, i've been trying for days to make this thing work. I googled the web for many tutorials and documentation, i read Scot Stark review, and lot other stuff. Unfortunatelly, i guess i didn't make a good search right here on the struts mail archive. I if i've done i'd have found this very

form property - Collection

2004-08-21 Thread Carolina Costa
Hi everyone, I have a form (extends ActionForm) that has a List property called procedimentos: private List procedimentos; public List getProcedimentos() { return this.procedimentos; } public void setProcedimentos(List proc){

Re: form property - Collection

2004-08-21 Thread Kishore Senji
logic:iterate id=x property=procedimentos indexId=i logic:iterate needs a name attribute if you specify property attribute. If you give the name attribute equal to your form name, it should work. Kishore Senji. - To

Re: Newbie Validator Basic Configuration

2004-08-21 Thread Chris Stavrianou
In my validator.xml file it uses the path of the action - see original post. I have tried the validator with the DynaValidatorForm and validator.xml referencing the name of the form not the action path - alas this didn't work. Thanks Chris Stav. On Sat, 21 Aug 2004 14:14:03 +0200, Matthias

Re: Newbie Validator Basic Configuration

2004-08-21 Thread Richard Aukland
Hi Chris, just in case you havent noticed; Below you have not spelled 'property' correctly, you have 'propery' maybe this was it? :) richard form-validation global /global formset form name=/login

image button for file upload

2004-08-21 Thread Dean A. Hoover
I've been reading some interesting methods for using image buttons on forms in place of the familiar Submit style browser generated buttons. There is one automatically generated button that I am still puzzled on how to use an image for it, though. That's the one for do file uploading, as in:

Re: image button for file upload

2004-08-21 Thread Leandro Melo
I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i don't think it's possible to use an image for this button. That's not because of struts, it's how the browsers implement thier html. --- Dean A. Hoover [EMAIL

Re: image button for file upload

2004-08-21 Thread Michael McGrady
Leandro Melo wrote: I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i don't think it's possible to use an image for this button. That's not because of struts, it's how the browsers implement thier html. --- Dean

Re: image button for file upload

2004-08-21 Thread Michael McGrady
One of the problems you run into with this is that there are differing behaviors between IE and the other browsers. Michael McGrady wrote: Leandro Melo wrote: I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i

Re: image button for file upload

2004-08-21 Thread Michael McGrady
Dean A. Hoover wrote: I've been reading some interesting methods for using image buttons on forms in place of the familiar "Submit" style browser generated buttons. There is one automatically generated button that I am still puzzled on how to use an image for it, though. That's

Re: image button for file upload

2004-08-21 Thread Michael McGrady
HTML DOM FileUpload Object previous http://www.w3schools.com/htmldom/dom_obj_event.asp next http://www.w3schools.com/htmldom/dom_obj_form.asp FileUpload Object For each instance of an HTML input type=file tag on a form,

Re: image button for file upload

2004-08-21 Thread Michael McGrady
Ergo, research should begin on input type='file disabled=true with javascript Michael Dean A. Hoover wrote: I've been reading some interesting methods for using image buttons on forms in place of the familiar Submit style browser generated buttons. There is one automatically generated button

[OT] What is the best archive for this list?

2004-08-21 Thread Michael McGrady
What is the best archive for this list? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] What is the best archive for this list?

2004-08-21 Thread Vic Cekvenich
http://marc.theaimsgroup.com Michael McGrady wrote: What is the best archive for this list? -- Please post on Rich Internet Applications User Interface (RiA/SoA) http://www.portalvu.com - To unsubscribe, e-mail: [EMAIL

Re: Newbie Validator Basic Configuration

2004-08-21 Thread Chris Stavrianou
Thx Richard - that was it Had been pulling my hair out over this one. On Sat, 21 Aug 2004 19:38:05 +0100, Richard Aukland [EMAIL PROTECTED] wrote: Hi Chris, just in case you havent noticed; Below you have not spelled 'property' correctly, you have 'propery' maybe this was it? :)

workflow violation handling in Struts Workflow Extension

2004-08-21 Thread lixin chu
Hi, Got a problem, no idea what's wrong: I have defined a violation handler: --- action path=/admin/OrgWorkflowViolation type=net.canal.admin.action.OrgWorkflowViolationAction forward name=success path=.createOrgDef/ /action

what does resetToken() do?

2004-08-21 Thread Ping Cheung Leung
I find no difference if I saveToken() without resetToken() first. Does it reset token to zeroes? What does resetToken do? _ ... http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/

Re: what does resetToken() do?

2004-08-21 Thread Michael McGrady
Ping Cheung Leung wrote: I find no difference if I saveToken() without resetToken() first. Does it reset token to zeroes? What does resetToken do? resets the token to a new value. - To unsubscribe, e-mail: [EMAIL

Can I generate a token without Action class?

2004-08-21 Thread Ping Cheung Leung
I have a web page presented by JSP only. No data to input. It contains several links only. If I click one of the links on the web page, It will go to another web page with a form to input data. If I want the form to have a token generated when the form first appears. How can I code it? The

Re: Can I generate a token without Action class?

2004-08-21 Thread Michael McGrady
Ping Cheung Leung wrote: I have a web page presented by JSP only. No data to input. It contains several links only. If I click one of the links on the web page, It will go to another web page with a form to input data. If I want the form to have a token generated when the form first appears.

Why not make scaffold exceptions as ModulExceptions with chaining ability?

2004-08-21 Thread struts Dude
Ok this is more like a question that shud be asked in developer group, but authors of scaffold are going to read it here any way. I hope. The org.apache.commons.scaffold.lang dir has a whole bunch of exceptions that simply does chaining. Why not integrate them with ActionErrors as in

Re: input and output form

2004-08-21 Thread Dan Allen
Using your example I would have a form to gather the search criteria. Submitting the form to the first action would gather a list of employess and store that list in a request scope attribute. It would then forward to the employee list jsp which would render the list of employees. Selecting an