Rick Reumann wrote:
Actually no:) I'm pretty lost now. Using the Session seems so much
easier:)
Maybe I am the one lost. Only time, if anything, will tell. ;-)
Michael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Rick Reumann wrote:
Michael McGrady wrote the following on 9/16/2004 3:18 PM:
SECOND BeanUtils
I would have BeanUtils populate a List and then have the logic in the
form populate the Object FooBar. That is, I would do the same thing
in populating the FooBar class as mining, retrieving, etc. that
Michael McGrady wrote the following on 9/16/2004 3:18 PM:
SECOND BeanUtils
I would have BeanUtils populate a List and then have the logic in the
form populate the Object FooBar.
That is, I would do the same thing in
populating the FooBar class as mining, retrieving, etc. that class.
Just use a
Hi, Rick,
I'm sort of going to answer you in reverse:
FIRST: stuff on ActionForm
I just created a class reset to mock what the reset() method would do.
You have to alter it to do what you want from your standard ActionForm.
For example, maybe:
ActionForm code:
private FooBar outsideFoo
(Not commenting inline)
Remember though the problem is that BeanUtils is going to try to
populate an new Object FooBar (that has nulls for it's inner
Collections) with the html request params. Could you post what you are
doing in your ActionForm reset() method? I don't see it listed below. I
sa
Rick
You can get the following FooBar output in [ActionForm].reset() in
request scope with the code that follows the result;
fooBarMajorDomo
1fooBar
11fooBar
111fooBar
112fooBar
113fooBar
114fooBar
115fooBar
12fooBar
121fooBar
122fooBar
123fooBar
124fooBar
125fooBar
13fooBar
131fooBar
132fooBar
1
, 2004 2:16 AM
To: Struts Users Mailing List
Subject: Re: Think I'm stuck with using Session scope for this..unless a
better idea?
Sorry, should have read the whole thread - I missed the fact you don't
have
control of FooBar.
You're probably right, session scope is probably the easies
g() {
return getInstance().toString();
}
}
- Original Message -
From: "Rick Reumann" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 5:45 AM
Subject: Re: Think I'm stuck with using Session scope for th
]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 5:45 AM
Subject: Re: Think I'm stuck with using Session scope for this..unless a
better idea?
> Niall Pemberton wrote the following on 9/16/2004 12:41 AM:
>
> > "I d
My next post solves this problem, Rick. It goes as deep as it needs to
and can keep track of the depth too. I am fairly sure my next post
(before this one) solves your problem. You don't have to use BeanUtils
at all. The problem is not a BeanUtils problem but a problem of
recursion. Yes?
Michael McGrady wrote the following on 9/16/2004 12:57 AM:
Would classic recursion help, Rick?
I don't think that will help since this would have to be done inside the
reset method and at that point BeanUtils is going to use an isntance of
FooBar but here is no way for it know at that point how d
Don't know if I am on track here, Rick, but, if you get the FooBar
loaded, the following code should unload it and do it in reverse to load
it again:
public void do(FooBar outsideFooBar) {
FooBar insideFooBar;
// A. Wrap non-collection values into an appropriate list;
// B. Use this logic
Would classic recursion help, Rick?
public void do(FooBar outsideFooBar) {
FooBar insideFooBar.
Object blah = outsideFooBar.getBlah();
Object blahBlah = outsideFooBar.getBlahBlah();
// Wrap blah and blahBlah.
if((insideFooBar = outsideFooBar.getFooBar()) != null) {
do(in
Niall Pemberton wrote the following on 9/16/2004 12:41 AM:
"I don't see how this is going to work though. The problem is I'm getting
back an Object (the FooBar one) from the back end that has the nested
collections inside. This isn't a Struts object (not of type ActionForm)."
I guess what meant was
t;
Sent: Thursday, September 16, 2004 5:12 AM
Subject: Re: Think I'm stuck with using Session scope for this..unless a
better idea?
> Niall Pemberton wrote the following on 9/16/2004 12:11 AM:
>
> > Doesn't matter if its not an ActionForm if you use Struts 1.2
Niall Pemberton wrote the following on 9/16/2004 12:11 AM:
Doesn't matter if its not an ActionForm if you use Struts 1.2.4 - it will
just "wrap" it in one - try just specifying your FooBar class in the
struts-config.xml
Sorry for being dense here but I still don't see how that helps with the
t; <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 4:56 AM
Subject: Re: Think I'm stuck with using Session scope for this..unless a
better idea?
> Hubert Rabago wrote the following on 9/15/2004 9:25 PM:
> &
Hubert Rabago wrote the following on 9/15/2004 9:25 PM:
Wow. You're using the tags for this form, right?
Of course:)
I haven't tried this yet, but there's a chance you might be able to
define a form with a field that matches FooBar:
class MyForm {
FooBarForm fooBar; // then you'll have your a
Rick Reumann wrote:
This app I'm working on is sort of any odd beast. It's a case where
the resulting JSP is going to be built by generic beans that are
nested inside of the same type of generic bean etc. So for an example ...
class FooBar {
Collection fooBars;
Integer id;
String type;
Oops. Just to clarify, it should be
class MyForm extends ActionForm
On Wed, 15 Sep 2004 20:25:30 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Wow. You're using the tags for this form, right?
>
> I haven't tried this yet, but there's a chance you might be able to
> define a form with a
Wow. You're using the tags for this form, right?
I haven't tried this yet, but there's a chance you might be able to
define a form with a field that matches FooBar:
class MyForm {
FooBarForm fooBar; // then you'll have your accessors, of course
class FooBarForm {
Integer id;
This app I'm working on is sort of any odd beast. It's a case where the
resulting JSP is going to be built by generic beans that are nested
inside of the same type of generic bean etc. So for an example ...
class FooBar {
Collection fooBars;
Integer id;
String type;
String value;
//set
22 matches
Mail list logo