Hi everyone!

Make your wish come true!  Chuck´s book is already on oreilly Safari!!


Julio Cesar


-----Mensagem original-----
De: Francesco Russo [mailto:[EMAIL PROTECTED]] 
Enviada em: terça-feira, 26 de novembro de 2002 04:44
Para: Struts Users Mailing List
Assunto: Re: Migrating from 1.0.2 to 1.1

Thanks David,

but this does not address what I was looking for. I need a way to get a 
reference to an already instantiated Action among the ones instantiated 
by the ActionServlet.
Is there a way to accomplish this task with the 1.1 version? At the 
bottom of the mail still appears the code fragment I use with Struts 
1.0.2 to help in understanding what my goal is.

Thanks,
Francesco.

David Graham wrote:

> If the ActionServlet has instantiated an Action then it has already 
> been loaded by the class loader and won't be loaded again by your 
> servlet.  I suggest removing that piece of code entirely.
>
> David
>
>
>
>
>
>
>> From: Francesco Russo <[EMAIL PROTECTED]>
>> Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: Migrating from 1.0.2 to 1.1
>> Date: Mon, 25 Nov 2002 17:13:42 +0100
>>
>> Hi everybody,
>>
>> I have a question concerning how to move a piece of code working with

>> the Struts 1.0.2  release to the upcoming 1.1 stable one. What I do
is:
>>
>> public myActionServlet extends ActionServlet
>> {
>>    ...
>>    public Class getClass(String fullyQualifiedName)
>>    {
>>          FastHashMap fhm = this.actions;
>>          java.lang.Object obj = fhm.get( fullyQualifiedName );
>>          return obj.getClass();
>>    }
>>    ...
>> }
>>
>> My intent is to retreive the Class instance associated with the 
>> Action identified by the provided fully qualified name in order to 
>> save the time required for loading it via the class loader, since it 
>> could already have been instantiated by the controller itself!
>>
>> What I am warried about is that the "actions" protected field in the 
>> ActionServlet class no longer exists in the 1.1 Struts release.
>>
>> Might anyone tell me how this simple piece of code can be geared to 
>> Struts 1.1?
>>
>> Thanks in advance,
>> Francesco.
>>
>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: 
>> <mailto:[EMAIL PROTECTED]>
>
>
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
>
>



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002
 


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

Reply via email to