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... public

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. What I need is a child

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
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.copyProperties(obj, this); } public

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
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 src) - does give me

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 are

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
- 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 think I just need to find a efficient way

RE: Inheritance within form beans

2007-10-02 Thread Kothari, Kailash
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: Inheritance within form beans Hello

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 the

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

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.

Re: global-exceptions + form-beans, conflict?

2007-04-29 Thread Laurie Harper
//EN http://struts.apache.org/dtds/struts-config_1_3.dtd; struts-config global-exceptions exception key=login.failure type=exception.LoginException path=/failure.jsp /exception /global-exceptions form-beans

global-exceptions + form-beans, conflict?

2007-04-28 Thread jiangshachina
://struts.apache.org/dtds/struts-config_1_3.dtd; struts-config global-exceptions exception key=login.failure type=exception.LoginException path=/failure.jsp /exception /global-exceptions form-beans form-bean

Re: global-exceptions + form-beans, conflict?

2007-04-28 Thread jiangshachina
Hello, I think I get the reason -- sequence. form-beans must be prior to global-exceptions, like servlet and servlet-mapping. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi guys, I'm new to Struts. I'm using Struts 1.3.8 + JBoss 4.0.5.GA + JDK 1.5.0 + Windows XP. I have

Re: global-exceptions + form-beans, conflict?

2007-04-28 Thread Paul Benedict
The DTD specifies the order of tags. Your error message is telling you what order they should appear in. On 4/28/07, jiangshachina [EMAIL PROTECTED] wrote: Hello, I think I get the reason -- sequence. form-beans must be prior to global-exceptions, like servlet and servlet-mapping. a cup

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 form-beans form-bean name=SearchForm type

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 would

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: html:text property=af1.field1 / ...I do indeed see the value as I expect. The way I did

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

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
, verified in Firebug. Lastly, here's struts-config: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd; struts-config form-beans form-bean name

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
; struts-config form-beans form-bean name=masterForm type=app.test.formbeans.MasterForm / /form-beans action-mappings action path=/final type=app.test.actions.FinalAction name=masterForm scope=request validate=false forward name=defaultForward path=/final.jsp / /action

Re: Nested form beans

2006-09-22 Thread Chris Pratt
. Lastly, here's struts-config: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd; struts-config form-beans form-bean name=masterForm type

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
-//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd; struts-config form-beans form-bean name=masterForm type=app.test.formbeans.MasterForm / /form-beans action-mappings action path=/final type

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
/struts/dtds/struts-config_1_2.dtd; struts-config form-beans form-bean name=masterForm type=app.test.formbeans.MasterForm / /form-beans action-mappings action path=/final type=app.test.actions.FinalAction name=masterForm scope=request validate=false forward name

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
-config_1_2.dtd; struts-config form-beans form-bean name=masterForm type=app.test.formbeans.MasterForm / /form-beans action-mappings action path=/final type=app.test.actions.FinalAction name=masterForm scope=request validate=false forward name=defaultForward path

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
/struts-config_1_2.dtd; struts-config form-beans form-bean name=masterForm type=app.test.formbeans.MasterForm / /form-beans action-mappings action path=/final type=app.test.actions.FinalAction name=masterForm scope=request validate=false forward name

Re: Nested form beans

2006-09-22 Thread Frank W. Zammetti
-//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd; struts-config form-beans form-bean name=masterForm type=app.test.formbeans.MasterForm / /form-beans action-mappings

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 can't see

RE: Nested form beans

2006-09-22 Thread Frank W. Zammetti
- 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 can't see anything that would cause your problem. I guess

RE: Nested form beans

2006-09-22 Thread 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 can't see anything that would cause your problem. I guess if it were me, I'd fire

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

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

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 plugin element appears. If you want to perform a certain setup operation in several modules, then each of them should repeat the same plugin element (or as close to the same as is appropriate.) If you only put

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

RV: Array of a java bean and Dynamic Form Beans

2006-01-18 Thread Néstor Boscán
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 Boscán wrote: The problem

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

2006-01-18 Thread Rick Reumann
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.. as I said you can use

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

2006-01-18 Thread Néstor Boscán
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 determine the size of the array I set the attribute

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

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

2006-01-18 Thread Néstor Boscán
Reumann [mailto:[EMAIL PROTECTED] 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

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

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 propagation

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 reset

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 work

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

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

Re: Form Beans

2005-11-16 Thread Ed Griebel
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 c:remove var=myFormBean scope=session/. Do

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)? What

Re: Form Beans

2005-11-16 Thread Frank W. Zammetti
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 documents on the web, book chapters, etc., that discuss

Re: Form Beans

2005-11-16 Thread Asad Habib
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 disadvantages of either approach

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 what

Re: Form Beans

2005-11-16 Thread Michael Jouravlev
(i.e. multiple form beans)? What are the advantages or disadvantages of either approach? Also, I would appreciate if you would forward me to documents on the web, book chapters, etc., that discuss this in detail. Thank you. I prefer using one formbean. And one action too. Is this looks

Re: Form Beans

2005-11-16 Thread Hubert Rabago
Jouravlev wrote: 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

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

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

2005-11-16 Thread bsimonin
are 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 field. Now imagine you have

Re: how many Form beans

2005-10-28 Thread fea jabi
user@struts.apache.org 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 my Jsp I created a formbean and for Form1 with attributes name row[] table row in the jsp created another formbean

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 things simpleI

Re: how many Form beans

2005-10-28 Thread fea jabi
@struts.apache.org To: Struts Users Mailing List user@struts.apache.org 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 a question

Re: how many Form beans

2005-10-28 Thread Murray Collingwood
List user@struts.apache.org 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 a question for the more advanced Struts user - I'm

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 user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: how many Form beans Date: Sat, 29 Oct 2005 00:01:32 +1000

Re: how many Form beans

2005-10-28 Thread Murray Collingwood
To: Struts Users Mailing List user@struts.apache.org Subject: Re: how many Form beans Date: Sat, 29 Oct 2005 00:01:32 +1000 Hi again CurrencyValueList must be extending the CurrencyValue right!! No. CurrencyValueList extends ActionForm. It contains one property that is a List

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

Re: how many Form beans

2005-10-27 Thread fea jabi
[EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org 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 hand the struts html tag library

Re: how many Form beans

2005-10-27 Thread Laurie Harper
? thanks. From: Martin Gainty [EMAIL PROTECTED] Reply-To: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org 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

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

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 to

Serializing Form-Beans with XML

2005-10-17 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

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

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 with XML

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 Hi Also

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 watching

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

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

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

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Abdullah Jibaly
- 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 different

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 Michael Jouravlev
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 to a form instead of assigning them to an action? Thanks

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
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 solution will pop up. Let me

RE: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Goswami, Raj
, -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 from the beginning

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 have two different form beans, but I don't see how

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
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

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Frank W. Zammetti
] 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 have two different form beans, but I don't see how I can accomplish that. There's

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Adam Hardy
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 for similar things, such as account numbers and dates

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Rick Reumann
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 to the Action and pull that id out

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
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 for similar things, such as account numbers and dates, and this makes it simple for all

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Frank W. Zammetti
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 for similar things, such as account numbers and dates, and this makes it simple for all the HTML

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Andrew Tomaka
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 different things, I should have two different form beans, but I don't see how I can accomplish

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
@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 responsible

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
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 Abdullah Jibaly
in that 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 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 session

Re: Two Forms, Two Form Beans, One JSP

2005-07-07 Thread Michael Taylor
: 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 retain state

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

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

Re: Nesting business beans inside form beans

2005-05-27 Thread Hubert Rabago
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, could I speed up my development by placing

Re: Nesting business beans inside form beans

2005-05-27 Thread Michael Jouravlev
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 you have in your business beans. It might give you other ideas on how

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

struts html tags and form-beans

2005-03-08 Thread wo_shi_ni_ba_ba
hi folks, if I just use plain html code(not struts html: tags) for constructing input types like radios, textfield,etc, would I still be able to use form-bean for automatic retrieving and populating as long as I wrap all the inputs in a form and set the form action to be an action associated with

  1   2   >