Re: map-backed action forms - form params not loaded ?

2004-03-11 Thread Daniel Henrique Alves Lima
Raghu, i think this .html is wrong. It must be like : Please, try it. Raghu Havaldar wrote: I do not have a problem while displaying those properties. However, when a form (which has a bunch of params like the one below) is submitted, the ActionForm's setValue method is not called. e.g. T

Re: map-backed action forms - form params not loaded ?

2004-03-10 Thread Craig Tataryn
aldar wrote: > > > Hi, > > > > Am using Struts 1.1, WinXP. > > > > Trying to use map-backed action forms to load a dynamic list of params > > from a > > form. When the form is submitted, the params are not loaded in the > > action form. > > Am follow

Re: map-backed action forms - form params not loaded ?

2004-03-10 Thread Daniel Henrique Alves Lima
How do look like the properties in your form ? Something like this : ? Are the other properties (non map-backed) ok ? Raghu Havaldar wrote: Hi, Am using Struts 1.1, WinXP. Trying to use map-backed action forms to load a dynamic list of params from a form. When the form is

map-backed action forms - form params not loaded ?

2004-03-10 Thread Raghu Havaldar
Hi, Am using Struts 1.1, WinXP. Trying to use map-backed action forms to load a dynamic list of params from a form. When the form is submitted, the params are not loaded in the action form. Am following the guidelines as speced in the Struts docs. Here's a snippet: public ParamsForm ex

Re: image input tags and list-backed action forms?

2004-01-30 Thread Bradford Holcombe
click event of the >input to set a hidden form property that carries back to the bean via >reflection. > >Jay > >>- Original Message - >>From: "Bradford Holcombe" <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Sent: Thursday, Jan

Re: image input tags and list-backed action forms?

2004-01-29 Thread Jay Haines
Thursday, January 29, 2004 12:54 PM Subject: image input tags and list-backed action forms? > I have a page where I need to submit a form with a variable number of > image buttons. I have been successful with using the ImageButtonBean > util to parse the parameters in the request for

image input tags and list-backed action forms?

2004-01-29 Thread Bradford Holcombe
I have a page where I need to submit a form with a variable number of image buttons. I have been successful with using the ImageButtonBean util to parse the parameters in the request for a single image button. I have also been successful using the list-backed action forms for variable numbers

RE: multiple action forms in a single jsp

2004-01-29 Thread Hookom, Jacob
I would put it all in one action form instead of splitting it up. Husted.com has a tip on staying away from making your action forms too specific. There might be a way to have child objects of a main parent form (which is what you reference in your action mapping). I've never tried it,

RE: multiple action forms in a single jsp

2004-01-29 Thread Mathew, Manoj
Mailing List Subject: RE: multiple action forms in a single jsp What you are describing almost sounds like a good use of JSF-- If you have 5 forms on a page, separate, do you want to save the state of the other 4 forms if submit is sent for one of them? -Original Message- From: Mathew

RE: multiple action forms in a single jsp

2004-01-29 Thread Hookom, Jacob
, 2004 10:02 AM To: Struts Users Mailing List Subject: RE: multiple action forms in a single jsp Actually i had a single action form till yesterday. But since the form is getting bigger and bigger (it is very huge now and i am just half way done), I was thinking of other possibilities. My application

RE: multiple action forms in a single jsp

2004-01-29 Thread Mathew, Manoj
Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:51 AM To: [EMAIL PROTECTED] Subject: RE: multiple action forms in a single jsp I think you need to take a step back and understand how http works. Per each request, only one html form can be submitted(whether it's a get

{ICICICARE#005-219-256}multiple action forms in a single jsp

2004-01-29 Thread NRI Cell
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your mail and assure you of a response shortly.To help us serve you better, we would request you to kindly mention your account number or any reference number you may have in your future correspondence. Kindly vis

RE: multiple action forms in a single jsp

2004-01-29 Thread Ben Anderson
u can have more than one form one a page, but only one will be submitted in the request. -Ben From: "Mathew, Manoj" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: multiple action forms in a single

multiple action forms in a single jsp

2004-01-29 Thread Mathew, Manoj
Hi I am having multiple action forms in a single jsp and wondering how to give multiple form names in the mappings. here my.jsp has form1,form2,form3 and form 4 and i want my action "saveAdd" to access all these

multiple action forms in a single jsp

2004-01-29 Thread Mathew, Manoj
Hi I am having multiple action forms in a single jsp and wondering how to give multiple form names in the mappings. here my.jsp has form1,form2,form3 and form 4 and i want my action "saveAdd" to access all these

How Do I Handle Two Action Forms

2003-12-24 Thread Caroline Jen
I am stuck and need your knowledge and experience. When the button is my JSP is clicked, there are two action forms involved, threadForm and postForm. The threadForm is populated by hidden fields and text fields that are passed from the JSP. All the properties of the threadForm are to be

Map based action forms

2003-10-13 Thread Yolk Man
d I was wondering if anyone else can shed some light as to why map based action forms cannot accept periods in the parameter of value(). Thanks. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http:

Map Backed Action Forms

2003-09-30 Thread Kansal, Sachin
Hi All, I am trying to use Map backed Action Forms in Struts. The setValue(String key, Object value) is not getting called. Does it get called automatically or an explicit call is required? When I access the page, the getValue() method is getting called. bye Sachin

RE: Advantage of Map/List backed forms Vs Action Forms with array list(urgent please ..need to take a decision )

2003-09-26 Thread Mathew, Manoj
-Hi Can anyone please tell me the advantages of Map/List backed forms over regular Action Map with array List or even a dyna action form with an arrayList thank you Manoj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Advantage of Map/List backed forms Vs Action Forms with array list

2003-09-25 Thread Mathew, Manoj
Hi Can anyone please tell me the advantages of Map/List backed forms over regular Action Map with array List or even a dyna action form with an arrayList thank you Manoj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: Defining inheritance for dynamic action forms in struts-config

2003-08-19 Thread Craig R. McClanahan
; Subject: Defining inheritance for dynamic action forms in struts-config > > We have recently upgraded to Struts 1.1 and are exploring the new features. > I have dynamic action forms and validator working. > > Many of our forms have several attributes in common. In struts 1.0.x we &g

Defining inheritance for dynamic action forms in struts-config

2003-08-19 Thread Andrew van der Voort
We have recently upgraded to Struts 1.1 and are exploring the new features. I have dynamic action forms and validator working. Many of our forms have several attributes in common. In struts 1.0.x we defined a class inheriting from ActionForm (MainActionForm), defined those attributes in it, and

Re: Dynamically generating Action Forms

2003-08-14 Thread Nicholas L Mohler
t; cc: Subject: Dynamically generating Action Forms 08/14/2003 07:07 AM

Action Forms

2003-08-14 Thread michel Van Asten
Hi, I am completly new using the strut framework and I am a litlle bit confuse about the use of ActionForms... Suppose that you have an application flow similar to the (stupid) flow below : 1) Wich beans is used to initialize the values of my DoAction2.jsp... I Expect Action2Form is it true ? 2)

Dynamically generating Action Forms

2003-08-14 Thread Mehta, Chirag (IT)
Hello, Does anyone know if there is a way of generating an Action form from the resultset's column metadata? I have a jsp that allows the user to enter SQL statements. I do not know what thier query will be so from the resultset I would like to create action forms according to the colum

RE: Dynamically generating Action Forms

2003-08-14 Thread Mehta, Chirag (IT)
Yea thanks a million mate. I was doing the same thing but wasn't sure how to iterate on the JSP page -Original Message- From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 12:33 To: Struts Users Mailing List Subject: Re: Dynamically generating Action Forms

Re: Dyna Action forms size attribute

2003-08-04 Thread Mark Lowe
Okay I fixed it... 1. I defined a form property as an ArrayList. 2. Scoped my form to session in the referring action. ( 3. In the referring action populate and arrayList and then set the value of the form property to the newly populated arrayList. ArrayList myList ... theForm.set("myprop",myli

Dyna Action forms size attribute

2003-08-04 Thread Mark Lowe
I read this article the other day which contains the following quote: http://developer.com/java/ejb/article.php/2233591 You can even dynamically specify the size of the form (and prepopulate it) at run time.  I've recently used this technique with an insurance application where the user has to

RE: struts generation tools for actionhandler, action forms and jsp?

2003-07-16 Thread Andrew Hill
: struts generation tools for actionhandler, action forms and jsp? Hi all, Just wondering what everyone was using wrt generation tools..thx NOTICE: This message contains privileged and confidential information intended only for the person or entity to which it is addressed. Any review

struts generation tools for actionhandler, action forms and jsp?

2003-07-16 Thread Butt, Dudley
Hi all, Just wondering what everyone was using wrt generation tools..thx NOTICE: This message contains privileged and confidential information intended only for the person or entity to which it is addressed. Any review, retransmission, dissemination, copy or other use of, or taking of any a

RE: Are action forms reused?

2003-03-18 Thread Sri Sankaran
> > I am using struts 1.1. What I would like to know is whether a > new form > bean is created in the following situation: > > An action sets a form bean as an attribute and passes it for > display to > the appropriate jsp page and its contents displayed. This form is > updated and submitte

Re: confused about an action forms fields

2003-03-18 Thread Nicolas De Loof
You can register a new converter for your data types http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/bea nutils/ConvertUtils.html#register(org.apache.commons.beanutils.Convert er, java.lang.Class) You will need to build a RoleConverter, that has access to your Role objetcs, and

Are action forms reused?

2003-03-18 Thread teknokrat
I am using struts 1.1. What I would like to know is whether a new form bean is created in the following situation: An action sets a form bean as an attribute and passes it for display to the appropriate jsp page and its contents displayed. This form is updated and submitted to a different actio

Re: confused about an action forms fields

2003-03-18 Thread teknokrat
Nicolas De Loof wrote: As user can edit them, you should set all actionform fields as string. You can use Collection, arrays and references to obects with String fields. This way you can build a "formbean" model that has the same look as your business object model (or data transfert objects). You c

Re: confused about an action forms fields

2003-03-18 Thread Nicolas De Loof
As user can edit them, you should set all actionform fields as string. You can use Collection, arrays and references to obects with String fields. This way you can build a "formbean" model that has the same look as your business object model (or data transfert objects). You can the use BeanUtil.co

confused about an action forms fields

2003-03-18 Thread teknokrat
Do all the fields of an actionform have to be strings? I am confused as to when a form field should become an entity in my business logic. For example, I have quite complex business objects composed of ArrayLists, Dates and other classes. How are these to be set? Do I need to capture everything

Re: Map-backed Action Forms

2002-11-10 Thread Mark Ayad
- From: "Mark Ayad" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, November 10, 2002 10:51 PM Subject: Map-backed Action Forms I'm trying out a Map-backed ActionForm. In my jsp I use : The action form is: pu

Map-backed Action Forms

2002-11-10 Thread Mark Ayad
I'm trying out a Map-backed ActionForm. In my jsp I use : The action form is: public class MapForm extends ActionForm { private HashMap map = new HashMap(); public void setValue(String key, Object value) { map.put(key, value); } public Object getValue(String key) { return getMap().g

Re: Duplication of code in Business objects and Action forms

2002-10-22 Thread Affan Qureshi
Message - From: "Rajesh Kanade" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, October 22, 2002 3:25 AM Subject: RE: Duplication of code in Business objects and Action forms > Thanx Ronald for the reply. >

Re: Duplication of code in Business objects and Action forms

2002-10-22 Thread Ronald Rotteveel
; Sent: Tuesday, October 22, 2002 12:25 PM Subject: RE: Duplication of code in Business objects and Action forms > Thanx Ronald for the reply. > > One solution which I have thought of is > > I have a data object let's say called UserData which has all the > instance variables an

RE: Duplication of code in Business objects and Action forms

2002-10-22 Thread Andrew Hill
uts Users Mailing List' Subject: RE: Duplication of code in Business objects and Action forms Thanx Ronald for the reply. One solution which I have thought of is I have a data object let's say called UserData which has all the instance variables and getter/setter methods. Now bot

RE: Duplication of code in Business objects and Action forms

2002-10-22 Thread Rajesh Kanade
Users Mailing List Subject: Re: Duplication of code in Business objects and Action forms I'm not using Struts for a very long time now, but I think this is NOT the way to do this. In your ActionForm bean called User I would put the getter/setter methods. In your UserBO (User Business Objec

Re: Duplication of code in Business objects and Action forms

2002-10-22 Thread Ronald Rotteveel
onald - Original Message - From: "Rajesh Kanade" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, October 22, 2002 9:00 AM Subject: Duplication of code in Business objects and Action forms > Hi All > >

Duplication of code in Business objects and Action forms

2002-10-21 Thread Rajesh Kanade
Hi All I am new to Struts so please bear with me. We have started implementing a new product using struts. Now I do see that I need to have getter /setter methods declared on both my business objects as well as Action form. So for e.g if I had a User business object which encapsulates the e

RE: Newbie question about action forms

2002-09-23 Thread Taylor, Jason
List Subject: RE: Newbie question about action forms Good question. I'll tell you what we did on my most recent project and you can decide if it counts as a good answer. I take a 100% view (no pun intended) that the reason for existence of an ActionForm is to be the communication channel between

RE: Newbie question about action forms

2002-09-23 Thread Chappell, Simon P
Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 >-Original Message- >From: Taylor, Jason [mailto:[EMAIL PROTECTED]] >Sent: Monday, September 23, 2002 12:40 PM >To: 'Struts Users Mailing List' >Subject: RE: Newbie questio

RE: Newbie question about action forms

2002-09-23 Thread Taylor, Jason
er 23, 2002 9:54 AM To: Struts Users Mailing List; Miguel Angel Medina Lopez Subject: RE: Newbie question about action forms The "Struts way" is to transfer data between pages and actions using an ActionForm object. This holds true for either direction. It is standard practice to transfer

RE: Newbie question about action forms

2002-09-23 Thread Chappell, Simon P
t >Subject: Newbie question about action forms > > >Hi all: > >In the Struts framewok information from the form to the action class is >transfer through an ActionForm, but when I want to transfer >information from >the Action to a new HTML (JSP) page, for example a list

Newbie question about action forms

2002-09-23 Thread Miguel Angel Medina Lopez
Hi all: In the Struts framewok information from the form to the action class is transfer through an ActionForm, but when I want to transfer information from the Action to a new HTML (JSP) page, for example a list of products, What is better? Use an action form or directly storing the list in the

Re: Question about Action Forms and input para

2002-09-06 Thread Craig Tataryn
>1) Look at the code snap from struts-config.xml below, what is the input >use >for? > >type="john.sample.Page2FormAction" >scope="request" >name="logonForm" >input="/page2.jsp"> > > Usually when I need to know something about struts-co

Question about Action Forms and input para

2002-09-06 Thread Smith, Johnathan M.
1) Look at the code snap from struts-config.xml below, what is the input use for? 2) I have a question now about the formbeans and forms. A user enters data into page1 and page1 data goes to the ActionForm page1Form. After I check some data I would like to goto page2 but page2 use

RE: HELP: Value objects w/ CMR fields to Action Forms

2002-07-25 Thread Jon.Ridgway
:[EMAIL PROTECTED]] Sent: 24 July 2002 17:47 To: [EMAIL PROTECTED] Subject: HELP: Value objects w/ CMR fields to Action Forms Hello, Does anyone have a best practice/pattern for mapping value objects which contain CMP 2.0 cmr field relationships to an action form. Previously we were using our own

HELP: Value objects w/ CMR fields to Action Forms

2002-07-24 Thread Roland Chan
Hello, Does anyone have a best practice/pattern for mapping value objects which contain CMP 2.0 cmr field relationships to an action form. Previously we were using our own relationship framework which required us to only have simple accessors for relationships in our value objects. Now these v

RE: ValidatorPlugin and Dynamic Action Forms?

2002-06-03 Thread Craig R. McClanahan
On Mon, 3 Jun 2002, Honman Lee wrote: > Date: Mon, 3 Jun 2002 16:43:59 -0700 > From: Honman Lee <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: ValidatorPlugin an

RE: ValidatorPlugin and Dynamic Action Forms?

2002-06-03 Thread Honman Lee
7; Subject: RE: ValidatorPlugin and Dynamic Action Forms? Not ignoring you, Rick...I haven't used DynaActionForm (yet). Mark -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 6:35 PM Not trying to be a pest re-posting but maybe some gurus

Re[2]: ValidatorPlugin and Dynamic Action Forms?

2002-06-03 Thread Rick Reumann
On Monday, June 3, 2002, 7:21:03 PM, Mark wrote: GM> Not ignoring you, Rick...I haven't used DynaActionForm (yet). he he no problem:) I didn't think you were... well unless it was Friday :) -- Rick mailto:[EMAIL PROTECTED] "One thing kids like is to be tricked. For instance, I was going t

ValidatorPlugin and Dynamic Action Forms?

2002-06-03 Thread Rick Reumann
Not trying to be a pest re-posting but maybe some gurus missed the post.. I'm curious if anyone knows how to get a DynaActionForm configured to uses struts validation? I searched the archives here but only found someone else with the same question which no one answered, so maybe it can't be done

Re: Multiple action forms Vs single action form

2002-05-22 Thread Victor Hadianto
> > If I have 3 JSPs , what will be a better approach according to > > performance - > > whether to have single or multiple formbeans. > > > I've seen the struts architects recommend using only one form bean, > although I didn't understand why. Search the archives - it was only a IMHO, it depend

Re: Multiple action forms Vs single action form

2002-05-22 Thread Adam Hardy
Hi Radhika, I've seen the struts architects recommend using only one form bean, although I didn't understand why. Search the archives - it was only a week or 10 days ago. What do you mean by jsps having dependent or independent fields? Adam Radhika Nadkarni wrote: > hi, > If I have 3 JSPs ,

Multiple action forms Vs single action form

2002-05-22 Thread Radhika Nadkarni
hi, If I have 3 JSPs , what will be a better approach according to performance - whether to have single or multiple formbeans. What will be better if the JSPs have dependent fields & what will be better if the JSPs have independent fields ? Thanx and regards, radhika __

Re: how to edit an array of records with action forms?

2002-03-07 Thread Arron Bates
Nightly build version can use implementations of the java.util.List rather than having to get back the primitive array object. Makes things easier to work with. Returning the Object[] actually renders everything but ArrayList style collections useless because the mapped collections and such do

Re: how to edit an array of records with action forms?

2002-03-07 Thread Ian Tomey
ahh, just paid more attention to your example code :-) public BunchBean() { this.bananaList = new ArrayList(); this.bananaList.add(new BananaBean()); this.bananaList.add(new BananaBean()); this.bananaList.add(new BananaBean()); } public Object[] getBanan

Re: how to edit an array of records with action forms?

2002-03-07 Thread Arron Bates
Who's fixing the number of records?... The tags will happily do whatever with what they're given. The monkey example adds and deletes objects in the various lists with ease. You could even map the bean properties to access columns in a result set. Wouldn't be on the "best practice" list howeve

Re: how to edit an array of records with action forms?

2002-03-07 Thread Ian Tomey
Hi Arron, Had a quick look at it, seems like what I need. One gotcha though is that the number of records is not fixed, so the creation of the array of row objects in the form constructor has to be bigger than the max size expected. I'm hoping that actionForm.reset is called before bean popul

Re: how to edit an array of records with action forms?

2002-03-06 Thread keithBacon
>> I just dont have time to expriement then you're in trouble mate! Sorry i can't answer I've avoided editing in grids so far. Beware that you'll end up with lots of wrote: > > Hi all, > > Got an array of records and I want to put them onto the screen to edit. What > is the technique to go abo

Re: how to edit an array of records with action forms?

2002-03-06 Thread Arron Bates
If you're on a nightly build, you'll have the nested extension already there. It will help you make light work of iterating objects. For a pimer and tutorial, go here... http://www.keyboardmonkey.com/struts And for mor implementation detail for each of the tags, the Struts site has the most co

how to edit an array of records with action forms?

2002-03-06 Thread Ian Tomey
Hi all, Got an array of records and I want to put them onto the screen to edit. What is the technique to go about this? (i am using the nightly 1.1 at the moment) is it create an action form that maps a single record and create a load of them? or create an action form with the properties bein

action forms..

2002-02-24 Thread Keith Chew
Hi I have a template jsp file which on the side bar displays the Latest News. The latest news is retrieved from the database. I can do a database access from the JSP or from a custom taglib, but this does not follow the MVC pattern. So, what I have done is have a BaseAction class this extends St

Re: action chaining without resetting action forms

2001-12-10 Thread Volker Krebs
Hello Ted, > If anyone is interested, I can post a patched JAR. But then they really, > really need to tell me that it works, or else this will never be > committed. I've finally managed to test it. I had to integrated in the newest nightly build, because we are using some new tags. But after t

Re: action chaining without resetting action forms

2001-12-10 Thread Volker Krebs
Ted Husted wrote: > Volker Krebs wrote: > >>I'm intrested, can you please post a patched JAR. >>We are doing some Action chaning in our application. >> > OK, see > http://husted.com/struts/resources/invoke.zip Sorry, but with your patched struts.jar my Application won't deploy. NoClassDefFoun

Re: action chaining without resetting action forms

2001-12-09 Thread Paul Devine
L PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 2:56 AM Subject: Re: action chaining without resetting action forms > Hi Paul, > > I have a similar Problem. From a link I invoke Action1 whichn sendes a Form > to the Brows

Re: action chaining without resetting action forms

2001-12-07 Thread Ted Husted
"Cakalic, James P." wrote: > Okay. Sounds like an interesting possibility. I guess I should > monitor the Velocity site/mail list for this announcement? > Thanks again. I'm sure I would bring it up here. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -

RE: action chaining without resetting action forms

2001-12-07 Thread Cakalic, James P.
Ted Husted wrote: > Personally, I'd think in terms of putting whatever you have > in mind for an Action into a servlet, so that it is not coupled > directly with Struts. > > I have been working with the Velocity team on finishing the work > Geir started last spring. We should have an improved

Re: action chaining without resetting action forms

2001-12-07 Thread Ted Husted
"Cakalic, James P." wrote: > Now my intent would be that ViewActions are not typically the direct targets > of posts. They are only ever forward targets from other Actions. As a > consequence, I would not specify an ActionForm in the mapping for a > ViewAction. If I understand your comments correc

RE: action chaining without resetting action forms

2001-12-07 Thread Cakalic, James P.
-wary to Struts. Thanks again, Ted, for your attention and guidance. Best regards, Jim Cakalic > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 06, 2001 6:52 PM > To: Struts Users Mailing List > Subject: Re: action chaining

Re: action chaining without resetting action forms

2001-12-07 Thread Peter Pilgrim
- Message History From: Ted Husted <[EMAIL PROTECTED]> on 06/12/2001 19:51 EST Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> cc: Sub

Re: action chaining without resetting action forms

2001-12-06 Thread Ted Husted
Volker Krebs wrote: > I'm intrested, can you please post a patched JAR. > We are doing some Action chaning in our application. OK, see http://husted.com/struts/resources/invoke.zip -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -

Re: action chaining without resetting action forms

2001-12-06 Thread Ted Husted
When you forward to a JSP, the original ActionForm and ActionMapping are left alone. As it stands, when you forward to another Action, the ActionServlet uses the same processing cycle it used for the first Action. If an ActionForm is specified by the mapping, the ActionServlet will try to populat

RE: action chaining without resetting action forms

2001-12-06 Thread Cakalic, James P.
n Action to a JSP, I really need to know what they are and how they can be addressed. Best regards, Jim Cakalic > -Original Message- > From: Volker Krebs [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 06, 2001 6:59 AM > To: Struts Users Mailing List > Subject: Re: actio

Re: action chaining without resetting action forms

2001-12-06 Thread Volker Krebs
Hi, > For the nightly build, I've suggested that we add two new methods so > that one Action can invoke another, but need some people to test the > idea for me. (Since I don't do this sort of thing myself.) > > If anyone is interested, I can post a patched JAR. But then they really, > really nee

Re: action chaining without resetting action forms

2001-12-06 Thread Ted Husted
The best solution here is to use add a switch to your bean to make its properties immutable.  private boolean immutable = false; public void setImmutable(boolean immutable) {  this.immutable = immutable; } // ... public setProperty(String property) { if (immutable) exit; this.proper

Re: action chaining without resetting action forms

2001-12-06 Thread Mohammed
; <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 4:33 AM Subject: Re: action chaining without resetting action forms > Joe > > I chain actions the way you describe. When you say the action form is > "reset" before the next action gets to process, do you mean

Re: action chaining without resetting action forms

2001-12-05 Thread Paul Devine
- Paul - Original Message - From: "Joe Faith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 11:54 AM Subject: action chaining without resetting action forms > Hi, > > I want to 'chain' actions, by setting the forward o

action chaining without resetting action forms

2001-12-05 Thread Joe Faith
Hi, I want to 'chain' actions, by setting the forward of one to be 'my_action.do' The problem is that this resets the action form before calling the next action. Is there anyway to prevent this, or am I chaining actions in the wrong way? thanks -- Joe Faith http://www.runtime-collective.com T:

FW: Nested properties in action forms

2001-07-17 Thread Daniel Steinberg
> -Original Message- > From: Daniel Steinberg > Sent: Tuesday, July 17, 2001 10:32 AM > To: '[EMAIL PROTECTED]' > Subject: Nested properties in action forms > > The Struts documentation states that Action Forms can contain nested >

RE: Action Forms And Model objects

2001-04-14 Thread Niall Pemberton
t. Niall > -Original Message- > From: Rajan Gupta [mailto:[EMAIL PROTECTED]] > Sent: 14 April 2001 01:46 > To: [EMAIL PROTECTED] > Subject: RE: Action Forms And Model objects > > > Niall, > I guess your formula does reduce coding for ActionsForms which require >

RE: Action Forms And Model objects

2001-04-14 Thread Niall Pemberton
> Sent: 14 April 2001 04:50 > To: [EMAIL PROTECTED] > Subject: RE: Action Forms And Model objects > > > ON 2nd thoughts, could one not achieve the results you are expecting using > client side JavaScript? > --- Rajan Gupta <[EMAIL PROTECTED]> wrote: > > Niall,

RE: Action Forms And Model objects

2001-04-13 Thread Rajan Gupta
null) { > > return message; > > } > > > > // Store values from the form in GenericBean(s) > > GenericBean bean = form.createBean(); > > > > // Process Business Logic > > return message = new > > LogicBuildProgram().create

RE: Action Forms And Model objects

2001-04-13 Thread Rajan Gupta
Bean(s) > GenericBean bean = form.createBean(); > > // Process Business Logic > return message = new > LogicBuildProgram().createBuildProgram(connection, > bean); > } > > > -Original Message- > > From: Rajan Gupta [mailto:[EMAIL PROTECTED]] > > Sent:

RE: Action Forms And Model objects

2001-04-13 Thread Niall Pemberton
age- > From: Rajan Gupta [mailto:[EMAIL PROTECTED]] > Sent: 13 April 2001 13:32 > To: [EMAIL PROTECTED] > Subject: RE: Action Forms And Model objects > > > How do you store or manage your validation rules since your > GenericActionForm could be validating fields types of fo

RE: Action Forms And Model objects

2001-04-13 Thread Rajan Gupta
type it should be. The form has a validate method to check whats > been > > > received agaist those rules. Its not dynamic but it is straight > forward. > > > > > > If the above checks fail, I can then re-display the form with the > values > > > entered.

RE: Action Forms And Model objects

2001-04-12 Thread Niall Pemberton
but it is straight forward. > > > > If the above checks fail, I can then re-display the form with the values > > entered. If the checks pass I can then safely populate the data into > > beans > > converting from Strings to the correct data types. > > > > >

RE: Action Forms And Model objects

2001-04-12 Thread Rajan Gupta
nto > beans > converting from Strings to the correct data types. > > > > > -Original Message- > > From: Levi Cook [mailto:[EMAIL PROTECTED]] > > Sent: 13 April 2001 01:05 > > To: [EMAIL PROTECTED] > > Subject: Re: Action Forms And Model

RE: Action Forms And Model objects

2001-04-12 Thread Niall Pemberton
rect data types. > -Original Message- > From: Levi Cook [mailto:[EMAIL PROTECTED]] > Sent: 13 April 2001 01:05 > To: [EMAIL PROTECTED] > Subject: Re: Action Forms And Model objects > > > Can you elaborate on what you mean by "dynamic" properties? > > How does this

Re: Action Forms And Model objects

2001-04-12 Thread Levi Cook
Can you elaborate on what you mean by "dynamic" properties? How does this refer to dynamic validation of properties? -- Levi - Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2001 5:58

RE: Action Forms And Model objects

2001-04-12 Thread Niall Pemberton
ED]] > Sent: 12 April 2001 20:17 > To: '[EMAIL PROTECTED]' > Subject: Action Forms And Model objects > > > Hi All, > I want to know how you all are desiging the Datacopy from ActionForm Beans > to actual Model objects. In my opinion ActionForms should have only String &

Action Forms And Model objects

2001-04-12 Thread Natra, Uday
Hi All, I want to know how you all are desiging the Datacopy from ActionForm Beans to actual Model objects. In my opinion ActionForms should have only String DataTypes(Dates are represented as strings). But the Model objects have actual Data Types since they represent the actual Domain objects. If

Re: multiple action forms with one action

2001-02-01 Thread Craig R. McClanahan
Anand Raman wrote: > hi guys > > How do we associate more than one ActionForm with a Action > This is not currently supported -- the assumption is that an Action will handle a single ActionForm. Do you have a use case in mind where doing this (multiple form beans) would be helpful? > > Thanks

multiple action forms with one action

2001-01-31 Thread Anand Raman
hi guys How do we associate more than one ActionForm with a Action Thanks for your help Anand