RE: ActionForms Thread Safe

2004-02-22 Thread Andrew Hill
If this is case then ActionForm are not thread-safe. Because Two request from different client can simultaneous come in and use the same ActionForm instance? I know this is not the case, but I cannot figure out how is it thread safe? Actually it is the case! - but only in certain cases when yo

Re: ActionForms Thread Safe

2004-02-21 Thread Hubert Rabago
Different clients use different requests and different sessions. Therefore, different users end up with different AF instances. If you use request scope for your AF, then even different requests from the same client will be using different AF instances. hth, Hubert --- Amish Patel <[EMAIL PROTEC

Re: ActionForms+struts-config

2003-11-26 Thread Ted Husted
The nomenclature here can be confusing. The "name" property doesn't refer to the Action or the ActionMapping, but to the FormBean "name" property. Earlier in the configuration file, there is a form-beans section, and a form-bean element with the name "MyActionForm". This is the class to which t

RE: ActionForms & Dynamically Created forms

2003-01-21 Thread James Mitchell
Have a look at indexed fields. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ "The man who does not read good books has no advantage over the man who cannot read them." - Mark Twain (1835-1910) > -Original Message- > From: Mark Chaimungkal

Re: ActionForms

2002-09-05 Thread thart
Also, when you reference input elements from your jsp pages an ActionForm of the appropriate type (based on ActionMappings...) will be automatically created for you. See the taglib API reference (http://jakarta.apache.org/struts/userGuide/struts-html.html#form) for more info. Hope this help

Re: ActionForms

2002-09-05 Thread John Yu
Not exactly sure what you mean. When an action mapping is associated with a form-bean, Struts will always automatically create the actionform object before calling action.execute()/perform(). The actionform is passed in as the second parameter of execute()/perform(). At 01:28 am 06-09-2002,

RE: ActionForms

2002-09-05 Thread Craig Tataryn
d password would have the values entered by the user on the loginForm. Make sense? Craig. >From: "James Mitchell" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTE

RE: ActionForms

2002-09-05 Thread James Mitchell
OTECTED]] > Sent: Thursday, September 05, 2002 1:41 PM > To: 'Struts Users Mailing List' > Subject: RE: ActionForms > > > Threaten it with replacement by .NET. > > -Original Message- > From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] > Sent:

RE: ActionForms

2002-09-05 Thread Galbreath, Mark
Threaten it with replacement by .NET. -Original Message- From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 1:28 PM How can I make Struts automatically created a ActionForm -- To unsubscribe, e-mail: For additional comman

Re: ActionForms in session, in a clustered environment

2002-08-16 Thread Adolfo Miguelez
I found a cluster related issue for ActionForms, which I reported a while ago, but I did not get any response. I would appreciate your opinion if you do further investigations. For Uploads, Struts uses FormFile/DiskFile objects as the parameter of the ActionForm which is going to receive the s

RE: ActionForms, Value Objects, Data Transfer Objects????

2002-05-30 Thread Robert Taylor
Yep. Lots of acronyms. Check some of the resources below and see if they can help you sort it out. http://martinfowler.com/isa/index.html http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/ Also Chapter 6 in Chucks book, http://www.theserverside.com/resources/strutsreview.

Re: ActionForms and custom tags

2002-02-12 Thread Bob Williams
Struts tags don't do anything that you can't do "manually" with HTML and JSP 'stuff', it justs gives you a framework to work in that eliminates some of the drudgery of typing (and correcting) the 'stuff'. If you can do with a tag you can do it without a tag! (It just might take longer.) bob ---

Re: ActionForms extending ActionForms

2001-11-02 Thread Ted Husted
The problem is that html:form is looking for the ActionForm associated with its ActionMapping. Having one Action handle more than one ActionForm isn't a problem. But getting html:form to handle more than ActionForm is problematic. If the *properties* for each registration type are the same, th

Re: ActionForms for read-only data??

2001-06-15 Thread Craig R. McClanahan
R. McClanahan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 14, 2001 1:19 PM > Subject: Re: ActionForms for read-only data?? > > > > > > > > On Thu, 14 Jun 2001, hi there wrote: > > > > > Craig, > > >

Re: ActionForms for read-only data??

2001-06-14 Thread Jonathan Asbell
Craig, can you explain point number one "Expose the data as JavaBeans *other than* the form bean". Is it that you are not using the form bean? - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, J

Re: ActionForms for read-only data??

2001-06-14 Thread Craig R. McClanahan
ne of these apps have had a very long life yet since Struts has only been around a year :-). Craig McClanahan > >From: "Craig R. McClanahan" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: [EMAIL PROTECTED] > >Subject: Re: ActionForms for read-on

Re: ActionForms for read-only data??

2001-06-14 Thread hi there
cClanahan" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: ActionForms for read-only data?? >Date: Mon, 11 Jun 2001 17:01:31 -0700 (PDT) > > > >On Mon, 11 Jun 2001 [EMAIL PROTECTED] wrote: > > > I have a Struts theory

Re: ActionForms for read-only data??

2001-06-12 Thread Ted Husted
Struts tries to recycle ActionForm beans between requests. Perhaps Struts is not creating a new bean for the next request, but recycling the old one by calling reset(), and so the nested beans are being set to null. Michael Mok wrote: > > Hi Ted > > Since you mentioned about this. I have trie

RE: ActionForms for read-only data??

2001-06-12 Thread Michael Mok
: [EMAIL PROTECTED] Subject: Re: ActionForms for read-only data?? This is off the original topic, but speaking of multiple beans, I thought I would mention that since the Struts tags support a nested syntax, beans can be properties of ActionForms. This would map to table1.getAccount() and table2

Re: ActionForms for read-only data??

2001-06-12 Thread Ted Husted
This is off the original topic, but speaking of multiple beans, I thought I would mention that since the Struts tags support a nested syntax, beans can be properties of ActionForms. This would map to table1.getAccount() and table2.CustomerName() -- where table1 and table2 were JavaBean proper

Re: ActionForms for read-only data??

2001-06-11 Thread Craig R. McClanahan
On Mon, 11 Jun 2001 [EMAIL PROTECTED] wrote: > I have a Struts theory question on use of action forms versus java beans > for read-only data. > > We have extended workflow on our website such that the same form can look a > bit different depending on where you are in the workflow. > For exampl

Re: ActionForms for read-only data??

2001-06-11 Thread Ted Husted
The important thing about ActionForm beans is that they are intended as adapters between HTML forms and the rest of the application. If the property is being used within a HTML form, then it is a valid use of an ActionForm bean, regardless of whether the property is hidden or immutable. It is no