> -----Original Message-----
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 06, 2004 1:58 PM
> To: Struts Users Mailing List
> Subject: RE: GOING GOING GONE DYNAMIC
> 
> 
> At 01:44 PM 8/6/2004, you wrote:
> >If I understand you correctly...
> >Same issue.... it's passed into the execute method, and 
> therefore you 
> >can't change it, only it's internals, so you would have to 
> do the same 
> >thing there.
> >
> >I'm talking specifically in the execute method, which is 
> where I think 
> >you're trying to create the form.
> 
> I'm perhaps confused, then, Jim.  My understanding is that Java never 
> passes more than the reference, so why could we not change 
> the mapping and 
> the form in execute?  Why cannot we, in other words, take the 
> reference and 
> reinitialize it to a different ActionForm, ActionMapping, or whatever?

Because java is NOT pass-by-reference, it's pass by value.. the value it passes is a 
reference rather then pushing the entire object on the stack.

http://java.sun.com/docs/books/tutorial/java/javaOO/arguments.html
The Pass by Value header.
> 
> Michael McGrady
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to