You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Reynolds <ji...@gmail.com> on 2005/12/28 16:54:39 UTC
Need bean class from RequestProcessor?
I have the need to find out the bean class name from an extended
RequestProcessor method. I have checked the docs, and do not see
anything obvious. Is there a way to achieve this? I have access to the
ActionForm, ActionMapping, etc in this method.
I have extended the processActionPerform method of the
RequestProcessor, and need to cast the forms off to their original
bean type.
Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need bean class from RequestProcessor?
Posted by Jim Reynolds <ji...@gmail.com>.
Thanks,
That worked. I was so caught up in digging through the struts api,
that I failed to notice the more obvious, and simple choice.
Thanks for the reply.
On 12/28/05, David G. Friedman <hu...@ix.netcom.com> wrote:
> Jim,
>
> What's wrong with object.getClass() or are you looking for the action's "form='....'' name which would be more specific
> to Struts?
>
> Regards,
> David
>
> -----Original Message-----
> From: Jim Reynolds [mailto:jim.jreynold@gmail.com]
> Sent: Wednesday, December 28, 2005 10:55 AM
> To: user@struts.apache.org
> Subject: Need bean class from RequestProcessor?
>
>
> I have the need to find out the bean class name from an extended
> RequestProcessor method. I have checked the docs, and do not see
> anything obvious. Is there a way to achieve this? I have access to the
> ActionForm, ActionMapping, etc in this method.
>
> I have extended the processActionPerform method of the
> RequestProcessor, and need to cast the forms off to their original
> bean type.
>
> Any ideas?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Need bean class from RequestProcessor?
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Jim,
What's wrong with object.getClass() or are you looking for the action's "form='....'' name which would be more specific
to Struts?
Regards,
David
-----Original Message-----
From: Jim Reynolds [mailto:jim.jreynold@gmail.com]
Sent: Wednesday, December 28, 2005 10:55 AM
To: user@struts.apache.org
Subject: Need bean class from RequestProcessor?
I have the need to find out the bean class name from an extended
RequestProcessor method. I have checked the docs, and do not see
anything obvious. Is there a way to achieve this? I have access to the
ActionForm, ActionMapping, etc in this method.
I have extended the processActionPerform method of the
RequestProcessor, and need to cast the forms off to their original
bean type.
Any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org