RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
riginal Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 3:47 PM To: Struts Users Mailing List Subject: Re: Inheritance within form beans On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Ok, that's quite interesting.. > > I th

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Ok, that's quite interesting.. > > I think I just need to find a efficient way of doing the deep copy > because my parent class has thousands of attributes in all including > nested attributes.. Hmm "thousands" of attributes? I doubt you ar

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
tober 03, 2007 2:37 PM To: Struts Users Mailing List Subject: Re: Inheritance within form beans On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thanks a lot Rick. That gives me a new area to explore. > > The BeanUtils method - BeanUtils.copyProperties(Object target, Object &

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
deep copy.. I might be the only one that does this, but I have all my form beans extend an abstract BaseActionForm that has these two methods: public void populateValueObject(Object obj) throws IllegalAccessException, InvocationTargetException { BeanUtils.cop

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
[mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 7:21 AM To: Struts Users Mailing List Subject: Re: Inheritance within form beans On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thaks Rick. > > This will give me an instance of the parent bean OR the child bean. >

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thaks Rick. > > This will give me an instance of the parent bean OR the child bean. > > What I need is a child bean pre populated with data from the parent > bean. Ok, so just get ParentBean and then populate your subclassed bean... publi

RE: Inheritance within form beans

2007-10-02 Thread Dave Newton
--- "Kothari, Kailash" wrote: > This will give me an instance of the parent bean OR > the child bean. > > What I need is a child bean pre populated with data > from the parent bean. I'd probably consider hooking in to the request processor (or chain if you're using 1.3, I suppose) and implement t

RE: Inheritance within form beans

2007-10-02 Thread Kothari, Kailash
ifferent session scoped instances of the same type of ActionForm in the session - the key is the action mapping name they are tied to.) -Original Message- From: Kothari, Kailash [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 5:31 PM To: user@struts.apache.org Subject: Inheri

Re: Inheritance within form beans

2007-10-01 Thread Rick Reumann
On 10/1/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > What I also need is that, when a child form bean is instantiated by > Struts, I want Struts to check if there is an instance of the parent > form bean in the session and if so, pre populate that data from the > parent to the child form bean

Inheritance within form beans

2007-10-01 Thread Kothari, Kailash
Hello, I have an interesting Struts design requirement and Im a little lost, would really appreciate help ! I have multiple form beans in my application and a lot of them share data. Instead of duplicating the common attributes in each form bean, I am opting for an more elegant approach, i.e

Issue with DispatchAction when configuring with multiple Form beans

2007-03-21 Thread rajan
Hi I am using DispatchAction to do similar actions. As per the requirement i have to use two different forms but similar actions. So added individual methods in my action class for each type of form beans. This is my sample config.xml

how to set form beans in arraylist

2006-11-28 Thread sabriz naduvilothi
Hi Guys I am new to Struts.Could any one send me a sample code where in i can set the form bean values through the request and then retrieve the form beans values in a jsp. Thanking n advance Sab On 11/7/06, Thom Burnett <[EMAIL PROTECTED]> wrote: What are common simple mistakes that

RE: Nested form beans

2006-09-22 Thread Frank W. Zammetti
) { >> af1 = new SimpleObject1AsAnotherActionForm1(); >> af2 = new SimpleObject2AsAnotherActionForm2(); >> } >> } >> >> Access: >> <%= masterForm.af1.field1 %> >> >> Peiyun >> >> -Original Message- >> From: Frank W

RE: Nested form beans

2006-09-22 Thread Frank W. Zammetti
t; } > > Access: > <%= masterForm.af1.field1 %> > > Peiyun > > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: September 22, 2006 4:23 PM > To: Struts Users Mailing List > Cc: Struts Users Mailing List > Subject: Re: Nested fo

RE: Nested form beans

2006-09-22 Thread Jiang, Peiyun
: <%= masterForm.af1.field1 %> Peiyun -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: September 22, 2006 4:23 PM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: Nested form beans On Fri, September 22, 2006 3:59 pm, Hubert Rabago wrote: > I

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
On Fri, September 22, 2006 3:59 pm, Hubert Rabago wrote: > I can't see anything that would cause your problem. > I guess if it were me, I'd fire up my debugger and start stepping > through some code. > Sorry. Yeah, that's the next step. Was hoping to avoid it with an easy answer, but that's the w

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
I can't see anything that would cause your problem. I guess if it were me, I'd fire up my debugger and start stepping through some code. Sorry. All I can say at this point is that I know what you're doing is possible cause that's how FormDef does nested beans. Hubert On 9/22/06, Frank W. Zammett

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
It still sounds like Struts is getting nulls for the subbeans when it tries to populate subbean.fieldX. Put some more logging, this time in the getters for the subbean in MasterForm, and log what it's returning. Hubert On 9/22/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: As a follow-up, I

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
As a follow-up, I threw some logging in the field1 and field2 setters in the subbeans... they don't appear to ever get called. I don't have to do anything special to tell Struts I'm using nested beans, do I? I didn't think so... Frank -- Frank W. Zammetti Founder and Chief Software Architect

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
Either that or create new beans (if they're null) when their getters are called. By the time Struts attempts to populate the form bean, the nested forms should already be instantiated. MasterForm.getAction1Form() and MasterForm.getAction2Form() should not return a null. Hubert On 9/22/06, Chri

Re: Nested form beans

2006-09-22 Thread Chris Pratt
In your no-arg constructor of your outer ActionForm (the container), make sure it instantiates each of the nested ActionForms using their no-arg constructors. (*Chris*) On 9/22/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Sorry, by af1 and af2 I did mean actionForm1 and actionForm2... my m

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
Sorry, by af1 and af2 I did mean actionForm1 and actionForm2... my mistake wasn't quite *THAT* obvious! ;) LOL Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projec

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
Hi Hubert, Yes, I get nulls for af1 and af2... I do have getters and setters for them. Lemme throw some data your way... I was hoping to avoid posting all this, but I suspect there to be something my eyes just aren't catching, so... Here's ActionForm1: package app.test.formbeans; import org.a

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
So what does happen when you submit the form? Are you getting NPEs? By the time Struts attempts to populate the form bean, the nested forms should already be instantiated. You should have getters and setters for af1 and af2, and getAf1() and getAf2() should not return a null. This could be an

Nested form beans

2006-09-22 Thread Frank W. Zammetti
I'm facing a situation where ideally I'd like to have a single ActionForm like so: public class MyActionForm extends ActionForm { AnotherActionForm1 af1; AnotherActionForm2 af2; } When in my JSP I do: ...I do indeed see the value as I expect. The way I did this is to have an Action mappin

RE: Form Beans in Session

2006-06-05 Thread nageshkumar.siddu
, OneVO.java,TwoVO.java,ThreeVO.java as custome Vos which hold the parameters in JSP like form beans. Incase of form beans make all fields as String fields(Date as String, int As String etc..), incase of Vos use correct fields(date as Date, int as int etc..) Use Composition like BaseVO.java has the three

Form Beans in Session

2006-06-05 Thread Hanmay Udgiri
Hi We have Pages where user enters some data in step 1 ,step 2 and in last step these data should be submitted to DB. We are putting the all form beans in session as all of our transactions are multiple step process. Is there any better of way not putting the form beans in session -- Thanks

Re: Dynamically adding form beans in plugin

2006-03-25 Thread Joe Germuska
Eamonn: The plugin gets the specific ModuleConfig for the module in which the element appears. If you want to perform a certain setup operation in several modules, then each of them should repeat the same element (or as close to the same as is appropriate.) If you only put the element in

Dynamically adding form beans in plugin

2006-03-25 Thread Eamonn O'Donnell
Hi, I have multiple modules configured in my web application I want to in the init() method of my plugin 1. read a file with some info 2. find a particular ModConfig object corresponding to 1 of my modules 3. According to the info in the file create and add FormBeanConfig objects to that ModConf

Re: good practice in creating form beans

2006-01-19 Thread Laurie Harper
fea jabi wrote: When creating form beans does it have to have only, which the user can enter information to? In my JSP, there are fields order date: present order date input field (user can update the order date here) Like this the JSP has about 20 fields. Does the form bean

good practice in creating form beans

2006-01-19 Thread fea jabi
When creating form beans does it have to have only, which the user can enter information to? In my JSP, there are fields order date: present order date input field (user can update the order date here) Like this the JSP has about 20 fields. Does the form bean should contain only

Re: RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Rick Reumann
Néstor Boscán wrote the following on 1/18/2006 10:48 AM: set ("variables", new VariableTo [count]); } } Now the first time I call the JSP it works fine. I have a refresh button that refreshes the page. The reset method is called with no problems and then I get the exception java.lan

RE: RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Néstor Boscán
ED] Enviado el: Wednesday, January 18, 2006 11:21 AM Para: Struts Users Mailing List Asunto: Re: RV: Array of a java bean and Dynamic Form Beans Néstor Boscán wrote the following on 1/18/2006 10:05 AM: > Hi Rick > > If I comment the reset method I get: > > java.lang.ArrayIndexOutOfBou

Re: RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Rick Reumann
Néstor Boscán wrote the following on 1/18/2006 10:05 AM: Hi Rick If I comment the reset method I get: java.lang.ArrayIndexOutOfBoundsException: 0 at I'm assuming you get that when you submit your form? Some of these things have to be broken down into baby stteps since sometimes the error

RE: RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Néstor Boscán
ara: Struts Users Mailing List Asunto: Re: RV: Array of a java bean and Dynamic Form Beans Néstor Boscán wrote the following on 1/18/2006 8:06 AM: > Hi Rick > > I created a class that extends DynaActionForm and checked the > parameters to determine the size of the array. After I determi

Re: RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Rick Reumann
nuary 17, 2006 11:07 PM Para: Struts Users Mailing List Asunto: Re: Array of a java bean and Dynamic Form Beans Néstor Boscán wrote: The problem is that I have to minimize the use of object in session scope to minimize session replication. Is there any way to do this in request scope? Right.. a

RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Néstor Boscán
n afectar al mensaje original, con motivo de su envío por correo electrónico. “ -Mensaje original- De: Rick Reumann [mailto:[EMAIL PROTECTED] Enviado el: Tuesday, January 17, 2006 11:07 PM Para: Struts Users Mailing List Asunto: Re: Array of a java bean and Dynamic Form Beans Néstor

Re: Array of a java bean and Dynamic Form Beans

2006-01-17 Thread Rick Reumann
Néstor Boscán wrote: The problem is that I have to minimize the use of object in session scope to minimize session replication. Is there any way to do this in request scope? Right.. as I said you can use Request scope just fine. You just have to make sure in the reset method to either use a L

RE: Array of a java bean and Dynamic Form Beans

2006-01-17 Thread Néstor Boscán
el: Tuesday, January 17, 2006 10:16 PM Para: Struts Users Mailing List Asunto: Re: Array of a java bean and Dynamic Form Beans Néstor Boscán wrote: > In the projects I'm working on we use a lot of Dynamic Form Beans with > Arrays of Java Beans. I read that the only way to make this

Re: Array of a java bean and Dynamic Form Beans

2006-01-17 Thread Rick Reumann
Néstor Boscán wrote: In the projects I'm working on we use a lot of Dynamic Form Beans with Arrays of Java Beans. I read that the only way to make this work is to declare the form bean with session scope. You can get this to work without using Session scope. You just need to use your

Array of a java bean and Dynamic Form Beans

2006-01-17 Thread Néstor Boscán
Hi In the projects I'm working on we use a lot of Dynamic Form Beans with Arrays of Java Beans. I read that the only way to make this work is to declare the form bean with session scope. The problem is that I need all form beans to have their scope set to request to minimize session propag

Re: Wizard page "data corruption" (was: "Re: Form Beans")

2005-11-16 Thread Michael Jouravlev
Oh, stupid me, you are talking about HTML FORM fields, while I was thinking about ActionForm fields. Returning to your case, the value does not seem "corrupted" to me. I think it is normal that different web pages of one wizard would share data. You display page 1, enter firstName, submit, it is s

RE: Wizard page "data corruption" (was: "Re: Form Beans")

2005-11-16 Thread bsimonin
asking? --Brad. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wed 11/16/2005 11:46 AM To: Struts Users Mailing List Subject: Wizard page "data corruption" (was: "Re: Form Beans") Imagine you have a single ActionForm with a firstName fiel

Wizard page "data corruption" (was: "Re: Form Beans")

2005-11-16 Thread Frank W. Zammetti
Imagine you have a single ActionForm with a firstName field. Now imagine you have two wizard pages that are used in sequence, and you want to use the same ActionForm for both. Assume the form is stored in session, as you would expect in a wizard. Now, imagine there is a firstName field on bot

Re: Form Beans

2005-11-16 Thread Hubert Rabago
> one form bean to capture data from several forms that are being submitted > >> in succession or to use one form bean per form (i.e. multiple form beans)? > >> What are the advantages or disadvantages of either approach? Also, I would > >> appreciate if you would forward m

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
form bean to capture data from several forms that are being submitted > >> in succession or to use one form bean per form (i.e. multiple form beans)? > >> What are the advantages or disadvantages of either approach? Also, I would > >> appreciate if you would forward me to d

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
On 11/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > The one thing to keep in mind if you go [one ActionForm] route is > to be sure you don't have a field on one page > with the same name as another. I had one junior developer make that > mistake and it drove him nuts trying to figure out w

Re: Form Beans

2005-11-16 Thread Asad Habib
t;[EMAIL PROTECTED]> wrote: Hello. I am new to Struts and would like some advice. Is it better to use one form bean to capture data from several forms that are being submitted in succession or to use one form bean per form (i.e. multiple form beans)? What are the advantages or disadvantage

Re: Form Beans

2005-11-16 Thread Frank W. Zammetti
CTED]> wrote: Hello. I am new to Struts and would like some advice. Is it better to use one form bean to capture data from several forms that are being submitted in succession or to use one form bean per form (i.e. multiple form beans)? What are the advantages or disadvantages of either approach

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
On 11/16/05, Asad Habib <[EMAIL PROTECTED]> wrote: > Hello. I am new to Struts and would like some advice. Is it better to use > one form bean to capture data from several forms that are being submitted > in succession or to use one form bean per form (i.e. multiple form beans)?

Re: Form Beans

2005-11-16 Thread Ed Griebel
memory and can be a problem if you have big objects or many user sessions hitting this set of pages and therefore creating a lot of form beans in their sessions. Another disadvantage is that you need to remove the formbean from the scope when you are done (e.g. with . Do a search for DispatchActio

RE: Form Beans

2005-11-16 Thread Ayusman dikshit
I think one form bean per form. Regards Ayusman -Original Message- From: Asad Habib [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 4:11 PM To: user@struts.apache.org Subject: Form Beans Hello. I am new to Struts and would like some advice. Is it better to use one form bean

Form Beans

2005-11-16 Thread Asad Habib
Hello. I am new to Struts and would like some advice. Is it better to use one form bean to capture data from several forms that are being submitted in succession or to use one form bean per form (i.e. multiple form beans)? What are the advantages or disadvantages of either approach? Also, I

Re: how many Form beans

2005-10-28 Thread Murray Collingwood
e 'type' is always declared fully, for example: Kind regards mc > >From: "Murray Collingwood" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: "Struts Users Mailing List" > >Subject: Re: how many Form bea

Re: how many Form beans

2005-10-28 Thread fea jabi
Thanksyou all for helping me thru this. I've got it working now. From: "Murray Collingwood" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: how many Form beans Date: Sat, 29 Oct 2005 00:01:32 +

Re: how many Form beans

2005-10-28 Thread fea jabi
t for that action. How will the Jsp know about the CurrencyValue form? do I have to import this? I mean in the statement Thanks. From: "Murray Collingwood" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" S

Re: how many Form beans

2005-10-28 Thread Murray Collingwood
Collingwood" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: "Struts Users Mailing List" > >Subject: Re: how many Form beans > >Date: Fri, 28 Oct 2005 23:32:09 +1000 > > > >Hi > > > >When I first

Re: how many Form beans

2005-10-28 Thread fea jabi
ts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: how many Form beans Date: Fri, 28 Oct 2005 23:32:09 +1000 Hi When I first read the subject line I thought the question was, "How many form beans does it take to change a light bulb?" Maybe this is

Re: how many Form beans

2005-10-28 Thread Murray Collingwood
Hi When I first read the subject line I thought the question was, "How many form beans does it take to change a light bulb?" Maybe this is a question for the more advanced Struts user - I'm not sure of the answer to that question. Any ideas Wendy / Laurie? I like to keep thi

Re: how many Form beans

2005-10-28 Thread fea jabi
amount?? Thanks. From: Laurie Harper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: how many Form beans Date: Thu, 27 Oct 2005 22:33:06 -0400 fea jabi wrote: thankyou for your responses. for

Re: how many Form beans

2005-10-27 Thread Laurie Harper
play data in table? thanks. From: "Martin Gainty" <[EMAIL PROTECTED]> Reply-To: "Martin Gainty" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: Re: how many Form beans Date: Thu, 27 Oct 2005 17:16:09 -0400 A couple of gotchas concerning

Re: how many Form beans

2005-10-27 Thread fea jabi
eply-To: "Martin Gainty" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Subject: Re: how many Form beans Date: Thu, 27 Oct 2005 17:16:09 -0400 A couple of gotchas concerning TagLibs what version JSP container ? if its 2.0 then consider JSTL 1.1.x tags On the other

Re: how many Form beans

2005-10-27 Thread Martin Gainty
er 27, 2005 3:51 PM Subject: Re: how many Form beans fea jabi wrote: I am new to web development and struts too. I am trying to create a jsp which has a text field for display only for Name and a Table below it with couple of rows and columns in it. how many form beans do I have to creat

Re: how many Form beans

2005-10-27 Thread Laurie Harper
fea jabi wrote: I am new to web development and struts too. I am trying to create a jsp which has a text field for display only for Name and a Table below it with couple of rows and columns in it. how many form beans do I have to create? Do I have to create one for the jsp and one for the

how many Form beans

2005-10-27 Thread fea jabi
I am new to web development and struts too. I am trying to create a jsp which has a text field for display only for Name and a Table below it with couple of rows and columns in it. how many form beans do I have to create? Do I have to create one for the jsp and one for the table alone? do

Re: Serialize Form-Beans with a Database. A good strategy?

2005-10-21 Thread Leon Rosenberg
as long as you only use it as blob, store and retrieve it, without querying subforms, a byte[] gained through serialization or externalization would be surely the faster alternative... regards leon On 10/21/05, gollinger <[EMAIL PROTECTED]> wrote: > Ciao, > > I've planned to transform a Form-Bean

Serialize Form-Beans with a Database. A good strategy?

2005-10-21 Thread gollinger
Ciao, I've planned to transform a Form-Bean to a XML-String and but it into a Databasetable-field, among with others as the user-id or the form-name. Is there anything you can say against this procedure? Ciao Antonio - To unsu

Re:SV: Serializing Form-Beans with XML

2005-10-17 Thread gollinger
Thank you for your answers I'll try it! Nice greetings Antonio -- Initial Header --- >From : [EMAIL PROTECTED] To : user@struts.apache.org Cc : Date : Mon, 17 Oct 2005 12:48:56 +0200 Subject : SV: Serializing Form-Beans with XML

SV: Serializing Form-Beans with XML

2005-10-17 Thread hermod.opstvedt
Hi Also there are a number of other API's for doing stuff like that, including the Java extention from Sun: JAXB Hermod -Opprinnelig melding- Fra: Bob Arnott [mailto:[EMAIL PROTECTED] Sendt: 17. oktober 2005 11:15 Til: Struts Users Mailing List Emne: Re: Serializing Form-Beans wit

Re: Serializing Form-Beans with XML

2005-10-17 Thread Bob Arnott
gollinger wrote: Hi, has someone made experiences in using a tool which can serialize Beans to XML-Files and works stable and properly. For example that can also handle String Arrays? http://jakarta.apache.org/commons/betwixt/ "The Betwixt library provides an XML introspection mechanism for

Serializing Form-Beans with XML

2005-10-16 Thread gollinger
Hi, has someone made experiences in using a tool which can serialize Beans to XML-Files and works stable and properly. For example that can also handle String Arrays? Nice Greetings Antonio - To unsubscribe, e-mail: [EMAIL PRO

Re: logic:iterate tag and form beans

2005-08-02 Thread Laurie Harper
Brian Kremmin wrote: I want to get some table data from a database and output it in table form on a webpage. I'm planning to use an ArrayList to store the data and use the logic:iterate tag to expose the elements of the list... however, I'm unsure of the proper structure of all these data object

Re: logic:iterate tag and form beans

2005-08-02 Thread Dave Newton
Brian Kremmin wrote: I'm planning to use an ArrayList to store the data and use the logic:iterate tag to expose the elements of the list... however, I'm unsure of the proper structure of all these data objects. I think I'm using struts 1.1 if that makes a difference. 1) I'd tend towards usin

RE: logic:iterate tag and form beans

2005-08-02 Thread BHansard
Example: DataBean: public class EmployeeBean(){ private String name = null; Private String dept = null; ... Getters and setters } FormBean: public class EmployeeForm extends ActionForm{ private Collection employees = new ArrayList(); ... Getters and Setter

RE: logic:iterate tag and form beans

2005-08-02 Thread Brian Kremmin
a naming scheme within the data structure of struts or can I call it whatever? Thanks much for your help, btw. -Original Message- From: Johnson, Kaerstin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:07 AM To: Struts Users Mailing List Subject: RE: logic:iterate tag and form b

RE: logic:iterate tag and form beans

2005-08-02 Thread Johnson, Kaerstin
in the array will wind up being a table row. -Original Message- From: Brian Kremmin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 11:02 AM To: user@struts.apache.org Subject: logic:iterate tag and form beans Hello Everyone, This is my first post. I've been watchin

logic:iterate tag and form beans

2005-08-02 Thread Brian Kremmin
Hello Everyone, This is my first post. I've been watching the list for a while now and I've hit a dead end. This is probably quite simple so any help would be greatly appreciated. I want to get some table data from a database and output it in table form on a webpage. I'm planning to u

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
w Tomaka Subject: Re: Two Forms, Two Form Beans, One JSP You can have multiple forms on the same page. I am using Tiles. I put some forms in the header/footer and they work just fine. I had to use different actions for the two forms, and I had to use session scope for one of them in order to

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Jouravlev
On 7/7/05, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > No, I actually meant that Struts will only process and associate one form > with the action processing that request, and therefore any validation, etc. > So only one html form will get associated with the current ActionForm, even > with ses

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
page. Regards, Abdullah -Original Message- From: Michael Taylor [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 1:02 PM To: Struts Users Mailing List Cc: Andrew Tomaka Subject: Re: Two Forms, Two Form Beans, One JSP You can have multiple forms on the same page. I am using Tiles

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
the name of the first Form Bean. Is it possible to assign Form Beans to a form instead of assigning them to an action? Thanks, ~ Andrew Tomaka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
user@struts.apache.org Subject: Two Forms, Two Form Beans, One JSP Hey all, I'm attempting to create a JSP that is made up of two forms. Each form needs a different form bean and is processed by a different action. The catch is that the first form returns back to the JSP and the action responsibl

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
e I've over complicated the problem, > > Yes, I think you are:) > > > My problem is that I have a "PreAction" to do the processing on the > > form. This requires the page to have the form bean assigned to it. > > Since I have two different forms doing two differ

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Frank W. Zammetti
makes >> > any sense). >> > >> > ~ Andrew Tomaka >> > >> > On 7/7/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: >> > >> >>From: "Andrew Tomaka" <[EMAIL PROTECTED]> >> >> >> >>>My problem

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
e: > > > >>From: "Andrew Tomaka" <[EMAIL PROTECTED]> > >> > >>>My problem is that I have a "PreAction" to do the processing on the > >>>form. This requires the page to have the form bean assigned to it. > >>>Sinc

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Rick Reumann
e two different forms doing two different things, I should have two different form beans, but I don't see how I can accomplish that. Here is a case where I don't believe you need to have these different ActionForms. If you just need an "id" from one drop down list, simply sumbit

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Adam Hardy
ed to it. Since I have two different forms doing two different things, I should have two different form beans, but I don't see how I can accomplish that. There's nothing wrong with sharing one form across multiple Actions. I do it for an accounting reporting webapp. All of the forms ask f

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Frank W. Zammetti
edit and the actual program id to edit (if that makes > any sense). > > ~ Andrew Tomaka > > On 7/7/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: >> From: "Andrew Tomaka" <[EMAIL PROTECTED]> >> >> > My problem is that I have a "PreAction" t

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
gt; > form. This requires the page to have the form bean assigned to it. > > Since I have two different forms doing two different things, I should > > have two different form beans, but I don't see how I can accomplish > > that. > > There's nothing wrong with sh

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Wendy Smoak
From: "Andrew Tomaka" <[EMAIL PROTECTED]> > My problem is that I have a "PreAction" to do the processing on the > form. This requires the page to have the form bean assigned to it. > Since I have two different forms doing two different things, I should >

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Goswami, Raj
hanks, -Original Message- From: Andrew Tomaka [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 12:00 PM To: Struts Users Mailing List Subject: Re: Two Forms, Two Form Beans, One JSP I imagine I've over complicated the problem, so I've taken a step back and am looking at it fro

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
age to have the form bean assigned to it. Since I have two different forms doing two different things, I should have two different form beans, but I don't see how I can accomplish that. This is going to be a common thing to do throughout my entire application so I am hoping a simple design s

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Jouravlev
d > the action responsible for this needs the name attribute set to the > Form Bean of the first form. When the JSP is loaded after the > processing of the first form, both the form tags are assigned the name > of the first Form Bean. > > Is it possible to assign Form Beans

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Rick Reumann
Andrew Tomaka wrote the following on 7/7/2005 10:26 AM: I'm attempting to create a JSP that is made up of two forms. Each form needs a different form bean and is processed by a different action. The catch is that the first form returns back to the JSP and the action responsible for this needs

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
ssage- From: Andrew Tomaka [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 9:26 AM To: user@struts.apache.org Subject: Two Forms, Two Form Beans, One JSP Hey all, I'm attempting to create a JSP that is made up of two forms. Each form needs a different form bean and is processed by a

Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
f the first form. When the JSP is loaded after the processing of the first form, both the form tags are assigned the name of the first Form Bean. Is it possible to assign Form Beans to a form instead of assigning them to an action? Thanks, ~ Andrew T

Re: Nesting business beans inside form beans

2005-05-27 Thread Hubert Rabago
Hi Michael, On 5/27/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Hi Hubert, > > * Is it possible to have a method, which would accept a reference to > an existing bean? Yes, although the current set of convenience methods don't support it. My goal with FormUtils is to provide the basic bu

Re: Nesting business beans inside form beans

2005-05-27 Thread Michael Jouravlev
For those, you should register add'l Converter objects (BeanUtils > comes with one for Date objecs). > Take a look a FormDef (https://formdef.dev.java.net). Right now it > doesn't allow you to selectively expose certain attributes, but it > does define form beans based on the fields

Re: Nesting business beans inside form beans

2005-05-27 Thread Hubert Rabago
;t allow you to selectively expose certain attributes, but it does define form beans based on the fields you have in your business beans. It might give you other ideas on how to deal with this issue. Hubert On 5/27/05, Nils Liebelt <[EMAIL PROTECTED]> wrote: > Hi all, > > coul

Nesting business beans inside form beans

2005-05-27 Thread Nils Liebelt
Hi all, could I speed up my development by placing "business" beans inside a form bean using delegating methods to set it. I could init the "business" bean with a none bean method and only expose certain attributes of course validating the way i need it. I am interested if I place such a construc

  1   2   >