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
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
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
&
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
[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.
>
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
--- "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
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
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
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
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
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
) {
>> af1 = new SimpleObject1AsAnotherActionForm1();
>> af2 = new SimpleObject2AsAnotherActionForm2();
>> }
>> }
>>
>> Access:
>> <%= masterForm.af1.field1 %>
>>
>> Peiyun
>>
>> -Original Message-
>> From: Frank W
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
:
<%= 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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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)?
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
makes
>> > any sense).
>> >
>> > ~ Andrew Tomaka
>> >
>> > On 7/7/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>> >
>> >>From: "Andrew Tomaka" <[EMAIL PROTECTED]>
>> >>
>> >>>My problem
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
;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
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 - 100 of 120 matches
Mail list logo