In my experience, it's not that the bean config is cached, it's that the form
itself is cached. If your bean is not in request scope, it gets reused.
Tomcat can keep a session alive between application and server restarts and
so your form can survive those. What I've done when I modify my dyna
Message-
From: Hubert Rabago
To: Struts Users Mailing List
Sent: 3/23/04 7:28 AM
Subject: RE: DynaActionForm caching issues?
In my experience, it's not that the bean config is cached, it's that the
form itself is cached. If your bean is not in request scope, it gets
reused. Tomcat can keep
Note: JBoss 3.2.3 includes an integrated Tomcat 4.1.29, which is of course
more likely to be relevant to this problem than JBoss itself...
-Original Message-
From: Norris, David A. ERDC-CERL-IL Contractor
[mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:45 PM
To: [EMAIL
Anirudh:
I'm assuming your have written getter/setter methods for this newproperty,
right? Double-check the case: it should be getMNum() (and
setMNum(String)).. If all else fails, clean out your work directory and try
again..
Regards,
Geeta
Anirudh Jayanth wrote:
[ERROR] RequestUtils -
]
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 7:52 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm IllegalArgumentException
Anirudh:
I'm assuming your have written getter/setter methods for this
newproperty, right? Double-check
Oops! My mistake entirely: sorry..(:(
Ok, try rebuilding the app entirely (clean all first), then clean out the
work directory and try again. Seems like something wierd is happening..
Geeta
Anirudh Jayanth wrote:
Hey Geeta,
I am using a DynaActionFrom This doesn't require getter and
Road,
3rd Block, Jayanagar,
Bangalore - 560011
Tel: 6655165 / 052 [ ext - 244 ]
[EMAIL PROTECTED]
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 8:12 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm IllegalArgumentException
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED]
Nope.created a whole new app. Tried just about anything.
Its giving the same exception and for the same property aswell.
It sure seems weird.. Cant help wondering if I am doing something
fundamentally wrong
though Any suggestions?
I had the similar problem, and Wendy's approach worked for me.
-- Nitin
Ivis Technologies
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 8:43 AM
To: Struts Users Mailing List
Subject: RE: DynaActionForm IllegalArgumentException
From
]
Sent: Thursday, March 04, 2004 8:12 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm IllegalArgumentException
Oops! My mistake entirely: sorry..(:(
Ok, try rebuilding the app entirely (clean all first), then clean out
the work directory and try again. Seems like something wierd
]
[EMAIL PROTECTED]
-Original Message-
From: Nitin Mulimani [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 9:14 PM
To: Struts Users Mailing List
Subject: RE: DynaActionForm IllegalArgumentException
I had the similar problem, and Wendy's approach worked for me.
-- Nitin
Ivis
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED]
I wish Wendy would have won the bet. Unfortunately that too doesn't
work. Actually mNum used to be messageNumber when I added it the first
time.
I took the struts-blank webapp, and pasted in your form-bean
definition.
I added the name to the
]
[EMAIL PROTECTED]
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 10:22 PM
To: Struts Users Mailing List
Subject: RE: DynaActionForm IllegalArgumentException
From: Anirudh Jayanth [mailto:[EMAIL PROTECTED]
I wish Wendy would have won
Hello Daniel,
let me ask, for the reason of using radio:
you are setting it with: price1 OR price2 OR price3
isn´t it?
so, you get an Array of size 1. (you can click only one)
thats reason for ArrayIndexOutOfBoundsException
perhaps, when you will set multiple values for your price-property
Not sure if its deprecated but i always use
action path=/foo name=myForm ..
rather than attribute which i don't know anything about.
Cheers Mark
On 2 Jan 2004, at 20:44, Sifuentes, Ben wrote:
I have been trying to do the following:
form-bean
name=searchForm
of type:DynaValidatorForm
is named as foo
request.getAttribute(foo);
or
request.getSession().getAttribute(foo);
greetings
matthias
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 03, 2004 2:05 PM
To: Struts Users Mailing List
Subject: Re
().getAttribute(foo);
greetings
matthias
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 03, 2004 2:05 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm question
Not sure if its deprecated but i always use
action path=/foo name=myForm ..
rather
my Arraylist has got a variable size.
so, i've put in the required action declarations(in struts-config.xml), the
DynaActionForm in session scope, and it works!
thanks a lot richard for your help!
best regards,
charles.
Message original Sujet: Re: dynaActionForm,JSTL
Charles,
If you the size of the ArrayList is constant, you can
specify the form-property 'size' attribute and this
will fix your problem. Otherwise, you need to use
session scope to store the FormBean. The reason is
that Struts will not size the colRequetes ArrayList
when the form is submitted. If
a moment later, i have found the reasons :)
- Original Message -
From: Ricky Yahoo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 10:44 PM
Subject: DynaActionForm basic problem.
hi, thanks for helping me! i have a problem by
It's impossible.. You can't.. Don't even look into BeanUtils.copyProperties
cause it won't help at all.
For individual properties PropertyUtils.copyProperty doesn't work either..
Its all a rouse.
-Tim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday,
[mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 4:16 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm and disabled textfield.
I find using a hidden field easier.
On 09/27/2003 03:25 AM Jan Van Stalle wrote:
Hello,
in IE disabled controls are not submitted (I don't
can I do such thing? Is it possible with with JSTL
somehow (c:out tag)?
Thank you.
-juraj.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 4:16 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm and disabled textfield.
I find using
:[EMAIL PROTECTED] Sent:
Saturday, September 27, 2003 4:16 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm and disabled textfield.
I find using a hidden field easier.
On 09/27/2003 03:25 AM Jan Van Stalle wrote:
Hello,
in IE disabled controls are not submitted (I don't know
I find using a hidden field easier.
On 09/27/2003 03:25 AM Jan Van Stalle wrote:
Hello,
in IE disabled controls are not submitted (I don't know if this is browser
dependent); you might make a workaround by writing a small javascript which
enables you controls when the user submits the form.
Jan
Hello,
in IE disabled controls are not submitted (I don't know if this is browser
dependent); you might make a workaround by writing a small javascript which
enables you controls when the user submits the form.
Jan
Kazda Juraj [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello
I've got this working using ArrayList .. I couldn't imagine how arrays
would allow the resizing.. I could be wrong, but I can tell you it
works for sure with arrayList..
Cheers Mark
On Friday, August 15, 2003, at 09:53 PM, Hary wrote:
--- Hary [EMAIL PROTECTED] wrote:
Hi,
I am trying to build
--- Hary [EMAIL PROTECTED] wrote:
Hi,
I am trying to build on the example problem given in
Succeeding with Struts: Indexed properties and Beans
by James Turner.
http://www.developer.com/java/ejb/article.php/2233591
I have Purchase Order PO.java that has array of
POLine
items. The
Is there a place where the disadvantages of using
DynaActionForm is listed? Needed this for a discussion.
I haven't found any...
They make my life so much easier that even if there
was a disadvantage, I'd still continue using them.
-TPP - maintains a suite of large Struts based applications
There are several disadvantages, which may or may not be important to a
particular application:
* A DynaActionForm can't be instantiated with a zero-argument
constructor. To create one yourself, you have to use the Struts utility
methods or use the factory method to copy an existing instance.
For info,
Just changed struts.jar to 1.1 ( not beta ). Everything works fine
-Original Message-
From: Mohd Amin Mohd Din [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:45 PM
To: [EMAIL PROTECTED]
Subject: DynaActionForm BUG?
Hi,
I have a big form with a number of multibox
struts to the latest version
might do the trick?
Amin
-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 12:37 AM
To: Struts Users Mailing List
Subject: RE: DynaActionForm BUG?
I have a big form with a number of multibox tags. It seems
I have a big form with a number of multibox tags. It seems that there
are mixup of data from one multibox to another. Is this a
documented bug or does it have to do something with jvm or tomcat? I have
tried on solaris and windows xp both environments seem to have the same
problem
Do
Be sure to set the scope on your action mapping to request, it is session
scope by default.
Suzette H. Daniel
Java Developer/Web dept
770 416.9222 ex: 5041
-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 2:26 PM
To: Struts Users Mailing
Yep.. that would do it... thanks!
--
Sloan
- Original Message -
From: Suzette Daniel [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 2:33 PM
Subject: RE: DynaActionForm reset
Be sure to set the scope on your action mapping to request
Sorry Mike,
what happens if you don't override reset() and call initialize() - I
mean what is this empty/null collection problem with checkboxes? I
haven't come across it.
Adam
Mike Whittaker wrote:
Okay. We have to overide reset() and call initialize() to prevent the
empty/null collection
The same way as any other action-form?
In short, you build an html:select with an html:options tag inside, giving the
collection containing the options as a parameter to html:options...
--
If education is too expensive, try ignorance.
On Mon, 14 Jul 2003 11:58:11 +0100
Qasim Khawaja [EMAIL
I may find the Dyna form stuff wasn't part of struts 1.0
I'm not sure what version of 0.9 you must have been running to have all
the dyna stuff running..
If you want to have your form bean generated without writing classes
then i thing you'll have to move to a 1.1 distribution of struts.
You
Where I should find DynaActionform, maybe packed in struts.jar ? It is
not there ; where should I find it?
cheers
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 8:17 PM
Subject: Re: DynaActionForm
I may
PROTECTED]
Sent: Sunday, June 01, 2003 8:17 PM
Subject: Re: DynaActionForm
I may find the Dyna form stuff wasn't part of struts 1.0
I'm not sure what version of 0.9 you must have been running to have all
the dyna stuff running..
If you want to have your form bean generated without writing classes
) you need :-D
Brandon Goodin
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 1:12 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
in 1.1
On Sunday, Jun 1, 2003, at 20:03 Europe/London, Giovanni Di Lembo wrote:
Where I should find
To: Struts Users Mailing List
Subject: Re: DynaActionForm
in 1.1
On Sunday, Jun 1, 2003, at 20:03 Europe/London, Giovanni Di Lembo
wrote:
Where I should find DynaActionform, maybe packed in struts.jar ? It is
not there ; where should I find it?
cheers
- Original Message -
From: Mark Lowe
:-)) I was hoping you would catch the humor :-D
Brandon Goodin
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 3:26 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
Note to self.. I must give clearer answers .. and not mess up my
: Sunday, June 01, 2003 3:26 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
Note to self.. I must give clearer answers .. and not mess up my
pronouns.. :o)
On Sunday, Jun 1, 2003, at 20:50 Europe/London, Brandon Goodin wrote:
Let me help mark...
1) You must have Struts 1.1 to use
: Re: DynaActionForm
its really none of my business..
but have you been working all through the weekend?
On Sunday, Jun 1, 2003, at 22:37 Europe/London, Brandon Goodin wrote:
:-)) I was hoping you would catch the humor :-D
Brandon Goodin
-Original Message-
From: Mark Lowe [mailto
Goodin
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 4:19 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
its really none of my business..
but have you been working all through the weekend?
On Sunday, Jun 1, 2003, at 22:37 Europe/London
where technology opportunities are thin.
Brandon Goodin
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 4:19 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
its really none of my business..
but have you been working all through
: Sunday, June 01, 2003 3:26 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
Note to self.. I must give clearer answers .. and not mess up my
pronouns.. :o)
On Sunday, Jun 1, 2003, at 20:50 Europe/London, Brandon Goodin wrote:
Let me help mark...
1) You must have Struts 1.1 to use
. AH! The joys of being a self-employed
Husband/Dad in a place where technology opportunities are thin.
Brandon Goodin
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 4:19 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm
its really none
OK, my turn =:)
Given an Action that just does this:
DynaActionForm input = (DynaActionForm) form;
Map map = input.getMap();
request.setAttribute(Tokens.LIST,map);
return mapping.findForward(Tokens.SUCCESS);
How come this works:
html:link action=/MultipleParametersForm name=%=Tokens.LIST%
My guess would be that a special code path is taken by
PropertyUtils.getProperty if the bean is a DynaBean so that it's looking
for map as a dyna property and not a standard bean property.
Ted Husted wrote:
OK, my turn =:)
Given an Action that just does this:
DynaActionForm input =
Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: May 30, 2003 1:40 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForm Coolness
OK, my turn =:)
Given an Action that just does this:
DynaActionForm input = (DynaActionForm) form;
Map map = input.getMap
Aha! Found the culprit. From PropertyUtilsBean.getSimpleProperty()...
// Handle DynaBean instances specially
if (bean instanceof DynaBean) {
DynaProperty descriptor =
((DynaBean) bean).getDynaClass().getDynaProperty(name);
if (descriptor == null) {
It appears (I am sure I missed some docs about this somewhere ... ) that
DynaActionForm String properties are initialized to an empty String,
unless otherwise set in the config file. The logic:present will never
work as expected, since there aren't any null String property values.
Subclassing
check logic:empty
- Original Message -
From: Susan Bradeen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:32 PM
Subject: Re: DynaActionForm with logic:present
It appears (I am sure I missed some docs about this somewhere
logic:empty
- Original Message -
From: Susan Bradeen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:32 PM
Subject: Re: DynaActionForm with logic:present
It appears (I am sure I missed some docs about this somewhere
On Tue, 25 Mar 2003, Adam Sherman wrote:
Date: Tue, 25 Mar 2003 20:50:39 -0500
From: Adam Sherman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: DynaActionForm if not set condition
How do I check if a field hasn't been set at all?
On 03/25/03 19:37:24 -0800 Craig R. McClanahan wrote:
The first form will correctly check whether the field has been set to
anything or not. The second will never work -- if you want to check for a
zero-length String, do this instead:
.equals((String) DynaActionForm.get(fieldName)
Makes sense,
Out of curiosity, couldn't something like the FastHashMap be used to
implement this? Or does the second note in the JavaDocs (about not cross
platform) keep it out?
- Robert
Craig R. McClanahan wrote:
On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:
Date: Mon, 10 Mar 2003 17:07:29 -0700
From:
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Re: DynaActionForm
On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:
Date: Mon, 10 Mar 2003 17:07:29 -0700
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List
]
cc: [EMAIL PROTECTED]
Subject:Re: DynaActionForm
Hi,
We have put our code that manipulates the FormBeanConfigs in the init()
method of our custom Plugin which is called before freeze. Our code adds
some FormPropertyConfigs to the FormBeanConfigs. However we now get
On Mon, 10 Mar 2003 [EMAIL PROTECTED] wrote:
Date: Mon, 10 Mar 2003 17:07:29 -0700
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: DynaActionForm
Hi,
We are creating a derivitive of DynaActionForm
Maybe you have your DynaActionForm bean stored in session? If so,
you should subclass DynaActionForm and provide a reset method.
Jose
Tony Tahbaz wrote:
Hello All,
I'm having a bit of trouble using a DynaActionForm with an html checkbox. My
form-bean looks like:
form-bean name=testForm
James Prance writes:
Having used DynaActionForms in my app, i now wonder what use ActionForms
are?
Is there ever a case for needing an ActionForm and if so when and why?
I thought there may be something to do with session states but i'm not sure.
Uploading files with FileForms?
can you give an example..
Nick Sharples [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
James Prance writes:
Having used DynaActionForms in my app, i now wonder what use
ActionForms
are?
Is there ever a case for needing an ActionForm and if so when and why?
I thought
James Prance wrote:
Having used DynaActionForms in my app, i now wonder what use ActionForms
are?
Is there ever a case for needing an ActionForm and if so when and why?
you want your own reset() implementation
you have a tool which generates your Forms (eg xdoclet)
Tib
James Prance writes:
can you give an example..
Nick Sharples [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
James Prance writes:
Having used DynaActionForms in my app, i now wonder what use
ActionForms
are?
Is there ever a case for needing an
Gemes Tibor wrote:
you want your own reset() implementation
You can still override reset in DynaActionForm... you just get out of
writing all the get/set methods. I have a DynaValidatorForm in which I've
implemented both reset and validate-- I couldn't convince the validator to
handle a
On Monday, Feb 10, 2003, at 13:15 US/Eastern, John C Cartwright wrote:
Hello All,
I'm working through Chuck Cavaness' Programming Jakarta Struts book
(and enjoying it, by the way!). I ran across the statement in
reference to form-properties and DynaActionForms ...you should try to
use only
Thanks for your prompt and helpful reply, Robert!
Could you clarify for me what you meant by ...You would pass a View
objet to the jsp page. ? Do you mean put the view object into session
scope and have the JSP pull it from there? Can I store this in the
ActionForm instance itself? or is it
I've a DynamicAction form and i need to generate an sql insert
statement from the properties and values contained within the
aforementioned form...
I usually generate my sql from such things by casting to a map but
ActionForms don't seem to like this..
What do you mean by 'ActionForms
DynaActionForm has a getMap method that Returns the Map containing the property
values.
Quoting Wendy Smoak [EMAIL PROTECTED]:
I've a DynamicAction form and i need to generate an sql insert
statement from the properties and values contained within the
aforementioned form...
I usually
umm.. my appologies for using anthropomophic language, sorry i was
trying to mail the struts list but obviously found some perl group.. :)
I MEAN I GET A CLASS CAST EXCEPTION becuase they're not supposed to do
that i suppose.,
Sorry but getting a Map or parameters and generating a query string
Mercoledì, 5 feb 2003, alle 17:53 Europe/Rome, Kris Schneider ha
scritto:
DynaActionForm has a getMap method that Returns the Map containing
the property
values.
Quoting Wendy Smoak [EMAIL PROTECTED]:
I've a DynamicAction form and i need to generate an sql insert
statement from the
On Wed, 5 Feb 2003, Kris Schneider wrote:
Date: Wed, 5 Feb 2003 11:53:46 -0500
From: Kris Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Dynaactionform
DynaActionForm has a getMap method
Thanks man
i didn't think my question was entirley erroronous...
I saw the getMap thingy just my struts was a few weeks older than the
docs
thanks again mark
Mercoledì, 5 feb 2003, alle 17:53 Europe/Rome, Kris Schneider ha
scritto:
DynaActionForm has a getMap method that Returns the Map
You could do something like this:
DynaActionForm dynaForm = (DynaActionForm) form;
DynaProperty[] properties = form.getDynaClass().getDynaProperties();
for (int i = 0; i properties.length; i++){
DynaProperty property = properties[i];
// do whatever you need to do with property name
Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Dynaactionform
DynaActionForm has a getMap method that Returns the Map containing the
property values.
This solution works for DynaActionForm in particular (where the getMap()
method was added
Not sure how I missed the getMap() method in the API. That makes the advice given
below seem rather ridiculous...
Greg
-Original Message-
From: Reddin, Greg
Sent: Wednesday, February 05, 2003 10:48 AM
To: 'Struts Users Mailing List'
Subject: RE: Dynaactionform
You could do
Sorry but getting a Map or parameters and generating a query
string is
plain enough without sending code.. Or do you sit around all day
writing myForm.get(somevalue) all day.. are the life of
rielly huh..
perhaps i should return to academia :)
In trogloditian terms
Map formMap =
On Wed, 5 Feb 2003, Kris Schneider wrote:
Date: Wed, 5 Feb 2003 12:19:22 -0500
From: Kris Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Dynaactionform
Isn't this what BeanUtils.describe
PROTECTED]
Subject: RE: Dynaactionform
DynaActionForm has a getMap method that Returns the Map containing
the
property values.
This solution works for DynaActionForm in particular (where the
getMap()
method was added). For general purpose extraction of name/value pairs
To: Struts Users Mailing List
Subject: Re: DynaActionForm question
On Mon, 20 Jan 2003, Giri Alwar wrote:
I have a question for the folks in general. What is the main reason for
using the DynaActionForm class (as opposed to writing your own
ActionForm)?
That's it in a nutshell :-). Having
2003. janur 21. 15:35 dtummal [EMAIL PROTECTED] ezt rtad:
Is it possible to instantiate an instance of DynaActionForm before I
populate the page?
Yes, for an example in your prepopulating action. Create an action which
collects the data and populates your form. And assign the same actionform
Pedantic clarification inline
Quoting Craig R. McClanahan [EMAIL PROTECTED]:
On Sun, 19 Jan 2003, Mark Minnie wrote:
Date: Sun, 19 Jan 2003 21:04:55 -0800
From: Mark Minnie [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:
The DynaActionForm differs from the ActionForm in one critical way: the
ActionForm class is a real Javabean with getter/setters for your properties.
Hence it can be used with other third party taglibs such as JSTL etc. The
DynaActionForm does not have getters/setters for your properties. The only
From: Giri Alwar [mailto:[EMAIL PROTECTED]]
Subject: Re: DynaActionForm question
The DynaActionForm differs from the ActionForm in one
critical way: the ActionForm class is a real Javabean with
getter/setters for your properties. Hence it can be used with
other third party taglibs
On Mon, 20 Jan 2003, Giri Alwar wrote:
I have a question for the folks in general. What is the main reason for
using the DynaActionForm class (as opposed to writing your own ActionForm)?
That's it in a nutshell :-). Having to write fewer classes is goodness.
While you don't have to write
From: Mark Minnie [mailto:[EMAIL PROTECTED]]
String username = ((LoginForm)form).getUsername();
String password = ((LoginForm)form).getPassword();
The LoginForm was the form bean that I had created manually
in java. I deleted the LoginForm and replaced the form bean
On Sun, 19 Jan 2003, Mark Minnie wrote:
Date: Sun, 19 Jan 2003 21:04:55 -0800
From: Mark Minnie [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: DynaActionForm question
Struts in Action on page 162 reads:
You can use a
More specifically...
pre 1.1b3
[DEBUG] org.apache.struts.util.RequestUtils - --
DynaActionForm[dynaClass=surveyMaintForm,category=NULL,currentNodeId=NULL,cmd=NULL,ranking=NULL,nodeName=NULL]
1.1b3
[DEBUG] org.apache.struts.util.RequestUtils - --
2002. december 13. 20:00 dátummal Charles ezt írtad:
Thanks for your help. But I'm still a little confused. How do you extend a
DynaActionForm? I thought it was created on the fly.
Only the properties are created on the fly, the class itself is
org.apache.struts.action.DynaActionForm.
So here
Hi Tibor,
Good examples and explanations. I have a clearer picture of how it works
now. Thanks!
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, December 13, 2002 12:15 AM
Subject: Re: DynaActionForm in session scope
tags can be used to present the reset() being called?
Thanks again
Charles
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 1:31 AM
Subject: Re: DynaActionForm in session scope
2002. december 12. 02
2002. december 12. 02:29 dátummal Charles ezt írtad:
Hi all,
Can a DynaValidatorForm be in session scope? Whenever I submit a page that
uses a DynaValidatorForm, which is in session scope, it resets itself and
all the previously stored data are lost. I did not call the form reset
function at
2002. december 12. 02:29 dátummal Charles ezt írtad:
Tried searching the message list at nagoya but the search function doesn't
seem to be working.
http://www.google.com/search?q=struts-user+session+reset+DynaActionForm+site%3Awww.mail-archive.com
Tib
--
To unsubscribe, e-mail:
I don't believe DynaActionForm supports java.util.Collection.
Please correct me if I'm wrong.
Thanks
-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 11:27 AM
To: Struts User
Subject: DynaActionForm problem - IllegalArgumentException:
2002. november 18. 15:32 dátummal Gunasekaran. V ezt írtad:
Greetings.
Is there any known bug in BeanUtils package for automatic population of
data from JSP.
...
While submitting the reset() method is called which sets null to
primitive javabean. And in PropertyUtils.getProperty gets null
List
Subject: Re: DynaActionForm Primitive JavaBean
2002. november 18. 15:32 dátummal Gunasekaran. V ezt írtad:
Greetings.
Is there any known bug in BeanUtils package for automatic population
of data from JSP.
...
While submitting the reset() method is called which sets null to
primitive
2002. november 18. 15:59 dátummal Gunasekaran. V ezt írtad:
Greetings Tibor.
I am not setting to null. I guess from 1.1 onwards the framework calls
reset() by default. Is there anyway to get around this problem?
But who wrote that reset()?
reset() was called in 1.0 for every request expect
1 - 100 of 181 matches
Mail list logo