OK, I've extended my action class with ActionSupport...still does not 
work. Does that mean I can't have my action class be a simple POJO wired 
using Spring and use Struts2 i18n features?

I'm also curious as to why the addition of <interceptor-ref name="i18n"/> 
in the action mapping would cause the AJAX theme to work improperly 
(javascript function not written to the response). Without <
interceptor-ref name="i18n"/>, the AJAX theme works just fine.

Diego Piedrahita
Manager, Web Product Development
Professional/Trade Division
John Wiley & Sons, Inc.
201-748-6872

Wiley Bicentennial: Knowledge for Generations 
1807-2007 



Dave Newton <[EMAIL PROTECTED]> 
09/24/2007 02:52 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
Re: Issue using Struts2's i18n interceptor and Spring "actions"






--- [EMAIL PROTECTED] wrote:
> The action is a Spring bean (implementing 
> com.opensymphony.xwork2.Preparable) and the
> struts.objectFactory constant is set to "spring". Is

> there a way to have Spring use ActionSupport for 
> the execution of these classes so that getText
> becomes available? 

Your Action needs to either extend ActionSupport or
implement TextProvider. This is not related to Spring
configuration; just make your class extend or
implement.

> Also, would Struts2 AJAX Themes be affected by this?


Themes are related to HTML generation, not Action
implementation.

d.


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


Reply via email to