Dynamic form Generation using Struts FrameWork..............

2004-03-08 Thread Amol Yadwadkar
Hi All, I am a new Bie at Struts Application. I want to develop a dynmic form by using Struts Framework.How shall I proceed in that ? It will be always appericiable to put your valuable Suggestion to it. Thankx in advance best regds, Amol -

Dynamic form, initial value for String[] property?

2004-01-27 Thread Wendy Smoak
I'm trying to use a String[] property and preselect the "none" option which corresponds to an empty String. If it were a simple string property, I could do: What do I put in the 'initial' attribute for this one? Essentially, I need this: new String[] { "" }; -- Wendy Smoak Application Sy

Re: dynamic form

2004-01-16 Thread Otávio Augusto
920-1986) > "The essence of knowledge is, having it, to apply it; not having it, to > confess your ignorance." > - Confucius (551-479 BC) > > > > > -Original Message- > From: Otávio Augusto [mailto:[EMAIL PROTECTED] > Sent: Friday, January 16, 200

RE: dynamic form

2004-01-16 Thread Trieu, Danny
, having it, to apply it; not having it, to confess your ignorance." - Confucius (551-479 BC) -Original Message- From: Otávio Augusto [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 7:29 AM To: [EMAIL PROTECTED] Subject: dynamic form Hi all I have a form which has a

dynamic form

2004-01-16 Thread Otávio Augusto
Hi all I have a form which has as many fields as are informed in a previous form. For instance: form 1 asks the number of fields i want in form 2. After inputting that number, i go to form 2, and there I must find the number of fields (same fields, they are going to be indexed="true"). What sho

Whats the best way to handle a dynamic form with lots of radio buttons

2004-01-07 Thread Murdo
Hi, I’m working on an online questionnaire and am fairly new to java web dev and struts. What I already have is a dynamically generated questionnaire that has topics, sub-topics then offers 5 choices to the user. The 5 options are a single radio group with the values 0-4  So my generated html l

Re: Dynamic form property names

2003-12-30 Thread Paul-J Woodward
cc: Subject: Re: Dynamic form property names 30/1

Re: Dynamic form property names

2003-12-30 Thread Pedro Salgado
t; > > "Paul-J Woodward" > Mailing List <[EMAIL PROTECTED]> > [EMAIL PROTECTED]> cc: > Subject: Dynamic form &g

Re: Dynamic form property names

2003-12-30 Thread Paul-J Woodward
[EMAIL PROTECTED]> cc: Subject: Dynamic form pr

Dynamic form property names

2003-12-29 Thread Paul-J Woodward
Dear All, I have been struggling with this all day, It'll take a bit of background to explain what I am trying to do: I am creating an online wizard to populate templatised web pages, and hence create a dynamic struts/tiles-based site. Each template has various containers for content, each con

Re: Dynamic form fields on ActionForm

2003-10-09 Thread Adam Hardy
I thought there was something slightly awry in your thinking. I guess that's where examples really do help. Good luck with it, Adam On 10/09/2003 03:15 AM Cornellious Mann wrote: Adam, I missed the point about adding the index to the input field name. I was simply naming the field the same thi

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
Adam, I missed the point about adding the index to the input field name. I was simply naming the field the same thing. It actually worked, but it worried me. Thansk for all of the help! :) --- Adam Hardy <[EMAIL PROTECTED]> wrote: > They're indexed! 0 becomes 0, 1 becomes 1 etc., i.e. > the o

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
I guess my question about order was more of HTML/submit question than a question about arrays. I just want to guarantee that the order of the values being sumitted stay in the order they are on the page. I was simply giving every input field the same name such as "product" and catching the values

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Lynn Guy
I just did this, maybe an example will help Read the database and stuff the data into an arraylist. Stuff the arraylist into the form. Call the page and get something like this change the data and subm

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
They're indexed! 0 becomes 0, 1 becomes 1 etc., i.e. the order they went out with remains the same when they come back in. I think you must be missing the point here somewhere On 10/08/2003 10:34 PM Cornellious Mann wrote: This worked. :) Do you know if the order is guaranteed? From my tes

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
This worked. :) Do you know if the order is guaranteed? From my testing it looks like the values appear in the array in the same order the parameters in the URL line. --- Adam Hardy <[EMAIL PROTECTED]> wrote: > Yes, but because they're indexed, you will see the > result as an array. > > On 10/0

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
or whether the fields themselves are not limited in name or type. If the former, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the b

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
>> > >>From > >> > >>>>the > >>>> > >>>> > >>>>>research I have done it sounds like ActionForms > >>>> > >>>>can > >>>> > >>>> > >>>>&

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
mer, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
Hi Cornellious, > >>>>it depends whether you know beforehand what the > >> > >>full > >> > >>>>set of possible > >>>>fields could be, or whether the fields > themselves > >>>>are not limited in &g

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
gic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I d

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
nd to use logic tags to display the needed > >>fields or not in JSP. > >> > >> > >>Adam > >> > >>On 10/07/2003 09:48 PM Cornellious Mann wrote: > >> > >>>I am wondering what is the best approach to > handle > >>>dy

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
limited in name or type. If the former, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form field

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Cornellious Mann
gt; all, and to use logic tags to display the needed > fields or not in JSP. > > > Adam > > On 10/07/2003 09:48 PM Cornellious Mann wrote: > > I am wondering what is the best approach to handle > > dynamic form fields within an ActionForm. > > > > I have a

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Mark Lowe
i++) { Product prod = (Product) productList.get(i); System.out.println( prod.getPrice() ); } ... This should help.. Cheers Mark On Tuesday, October 7, 2003, at 08:48 PM, Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Adam Hardy
or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I don't know how many products will be i

Dynamic form fields on ActionForm

2003-10-07 Thread Cornellious Mann
I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I don't know how many products will be in the list until runtime. How can I set up my ActionForm to handl

Re: Dynamic Form help

2003-08-14 Thread Mark Lowe
You use indexed property. This stuff i quite well documented, what isn't well documented is how to dynamically change the length of an indexed property. I've been using ArrayList for this.. You'll need to scope you form to session, as you get null pointers all over the show. ArrayList myL

Re: Dynamic Form help

2003-08-14 Thread David Erickson
ginal Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 12:54 PM Subject: Re: Dynamic Form help > You use indexed property. > > > > This stuff i quite wel

Dynamic Form help

2003-08-14 Thread David Erickson
I'm developing some administrative functions for our web app, currently im working on a page where it will list all the permissions available with a checkbox by each, and the ones the current user has will be checked. I'm trying to decide the best way to go about it, becaues the permissions are pu

Capturing Dynamic Form Elements

2003-07-23 Thread ganesh venkat
Hi all, I am struts newbie. I am stuck with a problem of capturing dynamically growing form elements. I have to know a way to capture recurring data in either DynaValidator or Form bean. My jsp can contain html elements say CoBorrower Information like CoBorrower Name, CoBorrower Address, CoBorr

RE: Dynamic Form Fields

2003-07-10 Thread Alex Shneyderman
> Currently, I have a DynaValidatorForm defined in my web app. Some of > the properties of this form will be completely dynamic. I will read a > database and retrieve an ArrayList. This ArrayList will contain the If I understand you correctly for (Iterator iter = al.iterator (); iter.hasNex

Dynamic Form Fields

2003-07-10 Thread Natalie D Rassmann
Hi, Currently, I have a DynaValidatorForm defined in my web app. Some of the properties of this form will be completely dynamic. I will read a database and retrieve an ArrayList. This ArrayList will contain the form field name, and form field value. How do this with a DynaValidatorForm? Can I

Re: iteration to create dynamic form.

2003-06-26 Thread Ajay Patil
Ajay Patil Vertex Software Pvt. Ltd. [EMAIL PROTECTED] http://www.vertex.co.in I have a tag which is supposed to create a dynamic form, filled with a checkbox for every object in a collection. (The checkbox is an option to

RE: iteration to create dynamic form

2003-06-25 Thread El Harouchi, Jaafar [IT]
form I have a tag which is supposed to create a dynamic form, filled with a checkbox for every object in a collection. (The checkbox is an option to delete one of those records from the database.) The form itself is a Map-Backed Action form with two methods (public void setValue(String key

iteration to create dynamic form

2003-06-25 Thread Piers Dunleavy
I have a tag which is supposed to create a dynamic form, filled with a checkbox for every object in a collection. (The checkbox is an option to delete one of those records from the database.) The form itself is a Map-Backed Action form with two methods (public void setValue(String key, Object

Re: Easy way to deal with Dynamic Form elements

2003-06-13 Thread Erik Price
Giampiero De Ciantis wrote: Sorry, I didn't explain myself. Basically the page that shows the cart contents will have an unknown number (Cardinality 0..*) of items listed. Beside each item there will be a text box where the user can input the quantity of the item that they want to order. When th

RE: Easy way to deal with Dynamic Form elements

2003-06-13 Thread Giampiero De Ciantis
Sent: June 13, 2003 2:58 PM To: Struts Users Mailing List Subject: Re: Easy way to deal with Dynamic Form elements Giampiero De Ciantis wrote: > I have basically a shopping cart application and I am wondering what is the > easiest way of updating the quantity of each item in the sh

Re: Easy way to deal with Dynamic Form elements

2003-06-13 Thread Erik Price
Giampiero De Ciantis wrote: I have basically a shopping cart application and I am wondering what is the easiest way of updating the quantity of each item in the shopping cart. Populating the page with the list of cart items is easy. I have no clue how I will process the Dynamic form elements

Easy way to deal with Dynamic Form elements

2003-06-13 Thread Giampiero De Ciantis
I have basically a shopping cart application and I am wondering what is the easiest way of updating the quantity of each item in the shopping cart. Populating the page with the list of cart items is easy. I have no clue how I will process the Dynamic form elements that represent the quantity of

Re: 'dynamic' form elements in a ActionForm

2003-03-18 Thread Ted Husted
his URL unnessary? I was just curious since in your response to the 'dynamic' form question, you mentioned that: "It's difficult to do this in the 1.0.x release, but simple as pie in the 1.1 beta and nightly build." What feature in 1.1 made it much simpler to do than in

Re: Dynamic form actions

2003-03-14 Thread Mark
t; >> results.append("\" action=\""); >> >>// check if we have a bean thats exposing a formaction property, if >> so, >> >> use that property, otherwise use our assigned action value in the jsp >> page &g

Re: Dynamic form actions

2003-03-14 Thread Kris Schneider
(value != null && !value.toString().equals("")) > >> { > >> this.action=ResponseUtils.filter(value.toString()); > >> System.out.println(value.toString()); > >> } > >> } catch (Exception e) &

Re: Dynamic form actions

2003-03-14 Thread Mark
ion e) >> { >> e.printStackTrace(); >> } >> >> results.append(response.encodeURL(RequestUtils.getActionMappingURL(action, >> pageContext))); >> >> >> *** REPLY SEPARATOR *** >> >> On 03/14/2003 at

Re: Dynamic form actions

2003-03-14 Thread Kris Schneider
appingURL(action, > pageContext))); > > > *** REPLY SEPARATOR *** > > On 03/14/2003 at 9:50 AM Jose Gonzalez Gomez wrote: > > >Mark, > > > >Please, correct me if I'm wrong, but I think the action attribute in > >the tag is

Re: Dynamic form actions

2003-03-14 Thread Mark
; >Please, correct me if I'm wrong, but I think the action attribute in >the tag is a run time expression, so there's no need to >extend the FormTag class in order to use a dynamic form action. > >Regards >Jose > >Mark wrote: > >>I just wa

Re: Dynamic form actions

2003-03-14 Thread Jose Gonzalez Gomez
Mark, Please, correct me if I'm wrong, but I think the action attribute in the tag is a run time expression, so there's no need to extend the FormTag class in order to use a dynamic form action. Regards Jose Mark wrote: I just wanted to pass on a tidbit that might help

Re: Dynamic form actions

2003-03-13 Thread Richard Raquepo
We'll i kind of interested in trying your solution. Can you post some jsp & codes in here. I think many people will appreciate it. Thanks. - Original Message - From: "Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 11:52 AM Su

Dynamic form actions

2003-03-13 Thread Mark
I just wanted to pass on a tidbit that might help one or two people out there. I have a search page that displays the results with checkboxes. There are two or three different places that i use this same search page, so rather than writing or copying the search results jsp page to several copie

RE: Dynamic form value replacements???

2003-03-12 Thread Jason Long
:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 8:43 PM To: Struts Users Mailing List Subject: Re: Dynamic form value replacements??? Can you put them in an array? - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAI

Re: Dynamic form value replacements???

2003-03-12 Thread Ian Hunter
Can you put them in an array? - Original Message - From: "Jason Long" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 9:38 PM Subject: Dynamic form value replacements??? > I have a form that is

Dynamic form value replacements???

2003-03-12 Thread Jason Long
I have a form that is dynamically created as a jsp in xml syntax. There are an arbitrary number of text fields that need to be validated. Could someone point me to an example of how to do this? I have no way of creating the set and get methods in the form class unless I dynamically create the ja

Does struts support validation for dynamic form?

2003-01-28 Thread K.Viswanathan
Hi , i have a requirement where user has to fill up some kind of questionaire form. Questions for a user depends on the "type" of a user. Questions are basically mutiple choice questions and the user can select the correct answer by selecting a radio button ( for each question there are five

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread Yuan, Saul (TOR-ML)
Yes, I agree. I probably won't do a full DynamicActionForm re-implementation, but part of its functions. Basically we need to define all form fields in a XML file and create a dynamic form bean that'll work in Struts1.0.2 and better yet, with the Validator. I found the following l

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread Craig R. McClanahan
On Wed, 15 Jan 2003, Yuan, Saul (TOR-ML) wrote: > Date: Wed, 15 Jan 2003 10:24:16 -0500 > From: "Yuan, Saul (TOR-ML)" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > S

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread Yuan, Saul (TOR-ML)
Can you give me more details, like what jar files, where to get them and how to use them etc... Thanks a lot, Saul -Original Message- From: ashokd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 12:55 AM To: Struts Users Mailing List Subject: Re: Need Dynamic Form Beans

Re: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-15 Thread ashokd
Hi, By using 1.0.2 also we can use Dynamic Form. For this we need to add some .zar files. I expermented with 1.0.2 Thnaks & Regards, Ashok.D - Original Message - From: "Yuan, Saul (TOR-ML)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTE

RE: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-08 Thread Yuan, Saul (TOR-ML)
Thanks, Craig, I got to trust you :-) Saul -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:13 PM To: Struts Users Mailing List Subject: Re: Need Dynamic Form Beans feature for Struts1.0.2 On Wed, 8 Jan 2003, Yuan, Saul

Re: Need Dynamic Form Beans feature for Struts1.0.2

2003-01-08 Thread Craig R. McClanahan
On Wed, 8 Jan 2003, Yuan, Saul (TOR-ML) wrote: > Date: Wed, 8 Jan 2003 15:55:29 -0500 > From: "Yuan, Saul (TOR-ML)" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Need Dynamic Form Beans featu

Need Dynamic Form Beans feature for Struts1.0.2

2003-01-08 Thread Yuan, Saul (TOR-ML)
Hi, We really need the Dynamic Form Beans feature in Struts1.1, but we're stuck with Struts1.0.2, just wondering what's the best way to add that feature to Struts1.0.2? Or any existing samples out there? Thanks in advance, Saul

Re: Runtime dynamic form/jsp from XML

2002-11-21 Thread tnist
x does not force you to go the XML/XSL route, both technologies will work side by side. Regards, Todd G. Nist > > From: Andrew B Forman <[EMAIL PROTECTED]> > Date: 2002/11/21 Thu AM 10:13:42 EST > To: List - Struts-User <[EMAIL PROTECTED]> > Subject: Runtime dynamic form

Runtime dynamic form/jsp from XML

2002-11-21 Thread Andrew B Forman
project: create an xml-driven set of screens within the struts framework. concept: we're attempting to create a rapid-release framework for rolling out new products. the idea is to have a portion of the framework driven by xml. the xml would contain information on what fields to display to the

Re: Assigning an object(FormFile) to a dynamic form.

2002-11-18 Thread Martin Cooper
On Mon, 18 Nov 2002, Reza Aliakbari wrote: > Hi, > > I use dynamic forms in my projects; but this time I want to upload > A file and when I usetype="org.apache.struts.upload.FormFile" /> > An error occurs that says that cannot assign String to FormFile. >

Assigning an object(FormFile) to a dynamic form.

2002-11-18 Thread Reza Aliakbari
Hi, I use dynamic forms in my projects; but this time I want to upload A file and when I use An error occurs that says that cannot assign String to FormFile. How can I use dynamic form with this kind of objects? Thanks, reza.

data not repopulated after validation using ActionForm for dynamic form fields

2002-11-15 Thread Vijay Balakrishnan
HI, I am trying to validate a fully dynamic form populated from the database.The validation works fine with an ActionForm with the following properties: private String[] fieldIdMemberIds; private String questionName; private HashMap hashMap = new HashMap(); The problem is repopulating

dynamic form field creation from Database with DynaFormBean

2002-11-14 Thread Vijay Balakrishnan
HI, I am not sure if this reached the list the first time round. I have the following DynaFormBean defined in tiles-def.xml: I am using the following code excerpt from the form which creates the <%=name%> dynamically based on values returned from the data

dynamic form field creation from Database with DynaFormBean

2002-11-14 Thread Vijay Balakrishnan
HI, I have the following DynaFormBean defined in tiles-def.xml: I am using the following code excerpt from the form which creates the <%=name%> dynamically based on values returned from the database.I want to use DynaFormBeans or a sub-class of it or Dy

Re: Dynamic form and Upload

2002-11-01 Thread Mr Alireza Fattahi
Thanks for your reply, I have seen the example and an work with it, But my problem is I can not do that in an dynamic form. How should I do it in dynamic form, and what should I put in struts.config.xml? As I told I got the class cast expetion. Thanks

Re: Dynamic form and Upload

2002-11-01 Thread Craig R. McClanahan
On Sat, 2 Nov 2002, Mr Alireza Fattahi wrote: > Date: Sat, 2 Nov 2002 05:21:12 + (GMT) > From: Mr Alireza Fattahi <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Dynamic form and Upload > > H

Dynamic form and Upload

2002-11-01 Thread Mr Alireza Fattahi
Hi, I want to use struts dynamic form feature. There is form which has an upload file filed and some input text. I used below in struts_config.xml But I got the classcast exception: error BeanUtils.populate org.apache.commons.beanutils.ConversionException: Cannot assign value

upload using dynamic form

2002-10-30 Thread Mr Alireza Fattahi
I want to use struts dynamic form feature. There is form which has an upload file filed and some input text. I used below in struts_config.xml But I got the classcast exception: error BeanUtils.populate org.apache.commons.beanutils.ConversionException: Cannot assign value

Re: Populating dynamic form beans

2002-08-18 Thread Paul Finlay
Drew McAuliffe wrote: > > Is there a simple way to populate a dynamic form bean with an object > whose properties match the names of the configured fields in the form? I have not seen any reply to this question and I have the same related issue. Scenario is as follows:

Re: Problem validating dynamic Form with Validator-Framework

2002-07-31 Thread Eddie Bush
That's it! It's got to be! Yes - you must always specify dynamic="true" for these dynamic forms! :-) Bleh - please post things in a "nicer" format next time you have to post things. Some of us are spoiled to well-formatted configs and just can't read jumbled up messes very well. [EMAIL PR

Re: Problem validating dynamic Form with Validator-Framework

2002-07-31 Thread struts-user
Depending on which version of Struts you are using, you might need to set the dynamic attribute to true like this: I can't remember off the top of my head whether you needed to do this for the DynaValidatorActionForm. I know that this has been changed so the framework can now induce whethe

Re: Problem validating dynamic Form with Validator-Framework

2002-07-31 Thread Eddie Bush
I don't see any problem with what you're doing - at least not right off. I don't use DynaValidatorActionForm though - just DynaValidatorForm. Maybe try updating to a recent nightly and see if you have the same problem. If you feel you are unclear on how to use the validator framework you ma

Problem validating dynamic Form with Validator-Framework

2002-07-31 Thread Axel Stahlhut
Hi, I've gfot problems with the validation Framework. (Struts 1.1b) If i try to validate a DynaValidatorForm I get the following error: java.lang.NullPointerException at org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:539) at org.apache.struts.action.Dy

Dynamic form construction

2002-06-27 Thread Rodrigo Paes
I have the following problem: I have two forms. The first form has a field which contains the numbers of itens desired for user. The second form will be constructed based on the numbers of itens entered in the first. In struts is very easy to write the first form bean, ie: FirstFormBean.java ..

RE: dynamic form properties

2002-06-25 Thread Galbreath, Mark
1. Declare the bean's scope as "session" as an attribute of the declaration in struts-config.xml and provide an empty reset() method in the bean class; 2. Use java scriplets (though I do not recommend this) as in <% List myBean = (List) session.getAttribute( "myBean"); Iterator i = myBean.

Re: dynamic form properties

2002-06-25 Thread Zhihua Xu
g List'" <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 5:58 AM Subject: RE: dynamic form properties > What do you want to know? I use maps and collections in form beans now to > capture multi-select list key-value pairs and checkbox array booleans, > respectively. I

Re: dynamic form properties

2002-06-11 Thread Daka
, Daka - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 5:58 AM Subject: RE: dynamic form properties > What do you want to know? I use maps a

RE: dynamic form properties

2002-06-06 Thread Galbreath, Mark
What do you want to know? I use maps and collections in form beans now to capture multi-select list key-value pairs and checkbox array booleans, respectively. I think it would be a simple extrapolation to map key-values for an entire HTML form, permitting a single action form to capture states f

dynamic form properties

2002-06-06 Thread Yaman Kumar
Hi, I have a requirement to create (n number of)radio buttons dynamically.I would like to validate them at form, How would i do this as these are dynamic properties?. Like Administrator has got 3 options to choose against each student name, ex. in MVC it looks like <% for (int i=0;i Name : <%c

RE: dynamic form properties

2002-06-05 Thread James Mitchell
hihua Xu [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 06, 2002 2:10 AM > To: [EMAIL PROTECTED] > Subject: dynamic form properties > > > Hi, there, > > I have learned the following, > > "In Struts 1.1 beta, a Map can be used instead of individual > proper

dynamic form properties

2002-06-05 Thread Zhihua Xu
Hi, there, I have learned the following, "In Struts 1.1 beta, a Map can be used instead of individual properties on an ActionForm. In the future, I foresee Struts developers using the same base ActionForm in all their projects, without going through the hassle of defining all these String pro

Dynamic form in struts 1.0.2

2002-05-27 Thread Andreas Guillemot
Hi I'm using Struts 1.0.2 and I've been struggling a while with a problem and I still don't know how to find a solution. I have a form filled from a database query. Some text 1 Some text 2 ... The user fills the form with some values in the "ordervalue"-fields and posts it to a new wind

RE: dynamic form using nested:file?

2002-04-14 Thread Alex Paransky
-AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/view.do?profileId=127 -Original Message- From: Elijah Jacobs [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 8:49 AM To: Struts Users Mailing List Subject: dynamic form using nested:file? hi all,

dynamic form using nested:file?

2002-04-14 Thread Elijah Jacobs
hi all, (forgive me if this is a duplicate... server problems) I have a form that can have N number of images. So in essence it's like the Monkey struts example by Arron Bates except where he has bananas, i have images. The problems is that I have to associate a FormFile for each image, since e

dynamic form using nested:file?

2002-04-14 Thread Elijah Jacobs
hi all, I have a form that can have N number of images. So in essence it's like the Monkey struts example by Arron Bates except where he has bananas, i have images. The problems is that I have to associate a FormFile for each image, since each image can be updated (hence an image upload is need

Re: dynamic form using nested:file?

2002-04-12 Thread Elijah Jacobs
No problem , Arron Your nested tags has more than helped my project. can't wait for the updated version... - ej - Original Message - From: "Arron Bates" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, April

Re: dynamic form using nested:file?

2002-04-12 Thread Arron Bates
Elijah, Sorry about the lack of the tag. It's on its way. Pick it up in the next nightly build. Arron. Elijah Jacobs wrote: >hi all, > >I have a form that can have N number of images. So in essence it's like the >Monkey struts example by Arron Bates except where he has bananas, i have >image

dynamic form using nested:file?

2002-04-11 Thread Elijah Jacobs
hi all, I have a form that can have N number of images. So in essence it's like the Monkey struts example by Arron Bates except where he has bananas, i have images. The problems is that I have to associate a FormFile for each image, since each image can be updated (hence an image upload is need

Nested Dynamic Form Question

2002-04-09 Thread Manie Coetzee
Hi I was wondering if one can nest Dynamic forms. If I have the following: I want to specify that the 'subjectForm' is a property of 'courseForm' and accesible via form-property 'subjects' Thank you in advance Manie Coetzee -- To unsubscribe, e-mail:

Re: 'dynamic' form elements in a ActionForm

2002-03-22 Thread Ted Husted
about/services "Struts Newsgroup (@Basebeans.com)" wrote: > > Subject: 'dynamic' form elements in a ActionForm > From: "Greg Tillbrook" <[EMAIL PROTECTED]> > === > Hi > > Ive been tryig to use an ActionForm bean for a form which can ha

'dynamic' form elements in a ActionForm

2002-03-20 Thread @Basebeans.com
Subject: 'dynamic' form elements in a ActionForm From: "Greg Tillbrook" <[EMAIL PROTECTED]> === Hi Ive been tryig to use an ActionForm bean for a form which can have a variable number of form elements (as defined by a 'meta' configuration file). Ive hit on th

Dynamic form fields

2002-02-22 Thread John Regan
I've searched the mail list and cannot find a clear answer to this one! Here is an example of what I need: A user enters the # of Travelers for their vacation in the first jsp of the sequence. In the second jsp I want to display an html:text input field for each traveler's age. what is the simpl

RE: collecting parameters from a dynamic form

2002-02-04 Thread Jeff Oberlander
ject: Re: collecting parameters from a dynamic form Em Seg, 2002-02-04 às 14:11, Jeff Oberlander escreveu: > request.getParameter("name")); > request.getParameter("value")); > > works, but of course only returns one of the sets of data - the first in the > form.

collecting parameters from a dynamic form

2002-02-04 Thread Jeff Oberlander
I have a dynamic form that is built from an ArrayList of objects (see below (b) ). Building the form works great. I get multiple rows of widget names and values. However, I can't seem to collect the data in my Action. The HTML that is rendered just repeats the same named input fields

RE: dynamic form action flow

2002-02-01 Thread Jeff Oberlander
of forwarding to the editPhoneNumbers.do action, directly re-display the jsp. -Original Message- From: Jeff Oberlander Sent: Friday, February 01, 2002 7:39 AM To: 'Struts Users Mailing List' Subject: RE: dynamic form action flow I've tried going straight to the display

RE: dynamic form action flow

2002-02-01 Thread Jeff Oberlander
bject: Re: dynamic form action flow > SavePhoneNumberAction.java --> editPhoneNumbers.do It may be that this is looking up the original phone number again. If so, this is also where the recyling message could be coming into it. Do you want to go back through the edit action, or stra

RE: dynamic form action flow

2002-02-01 Thread Jeff Oberlander
om: Jon.Ridgway [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:05 AM To: 'Struts Users Mailing List' Subject: RE: dynamic form action flow Hi Jeff, The struts-example.war app does just this, except it uses subscriptions instead of phone numbers. It's part of the struts

  1   2   >