Re: Can I generate a token without Action class?

2004-08-21 Thread Ping Cheung Leung
My attention is to prevention duplicated submission. I have refered to the struts-example. It checks the valid of token by IsValidToken(). However when a form is displayed at the first time, it always is invalid. Moreover, according to the struts-example, it saveToken when it finds error. The beh

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

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 ModulExceptio

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 appe

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 proce

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

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/ --

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: --- --- the code works fine when I first time click somewhere outside of the current running workflow. However, when I clic

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

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) - To unsubscribe, e-mail: [EMAIL PROTEC

[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: image button for file upload

2004-08-21 Thread Michael McGrady
Ergo, research should begin on Any ideas? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To

Re: image button for file upload

2004-08-21 Thread Michael McGrady
HTML DOM FileUpload Object previous next FileUpload Object For each instance of an HTML tag on a form, a FileUplo

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 t

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 don

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 A

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: form property - Collection

2004-08-21 Thread Carolina Costa
Kishore, that woked! thanks a lot! Carolina - Original Message - From: "Kishore Senji" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, August 21, 2004 12:59 PM Subject: Re: form property - Collection > > > > logic:iterate needs a "name" at

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:

Error loading Applet in IE within Struts application

2004-08-21 Thread Axel Seinsche
Hi, this question not typically Struts related, but maybe someone on this list had this error before and can help me. I have an applet which runs well on Firefox and Nescape. Evevn if I put in a single HTML file it is loaded correctly with Internet Explorer. As soon as the applet is integrated

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 > > > > > > > > > > > > > > > >> depends="required">

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 Wess

Re: form property - Collection

2004-08-21 Thread Kishore Senji
> 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

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){ t

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 explanato

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 y

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

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: 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, Augu

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

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 (Pr

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

Asunto: > 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: the user can change the values of the inputs typing new values in the browser, and if he press the reset button, what will ha

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 Login.jsp

Questions about business objects, ProcessAction and ProcessBean

2004-08-21 Thread struts Dude
Hi What approach do you people like to model business objects for Action to call? For example, do struts guru like to create business object by extending org.apache.commons.scaffold.util.ProcessBeanBase and use it with org.apache.struts.scaffold.ProcessAction by specifying ProcessAction in A

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

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 te