Hi all,

New to Struts2 (2.0.9) and testing out the "Struts2 + Spring 2 + JPA + 
AJAX" tutorial found here: 
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html

I got it to work just fine "out of the box" but then I tried to add 
localization to it by adding the intereceptor-ref tag (name="i18n") and it 
didn't work. Out of the box there is a validateForm_save javascript 
function written out, but once I add that call to the interceptor it is no 
longer there. 

Also, in modifying the jsp for localization, I changed 
<s:textfield id="firstName" label="First Name" name="person.firstName"/>

to

<s:textfield id="firstName" label="%{getText('firstname')}" name=
"person.firstName"/>

And the only thing that comes up is 'firstname' when in fact the value 
should be 'First Name' as it is in the appropriate properties file which 
resides in the same package as the action itself.

Any ideas on how to get Struts2 + Spring 2 + Struts2-Interceptors-Spring2 
working? 

Thanks in advance,

Diego

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

Wiley Bicentennial: Knowledge for Generations 
1807-2007 

Reply via email to