Hi there,
I have to internationalize an existing
Struts based application. We have chosen the approach of having locale specific JSPs in separate folders (as our GUI look and feel may change for each customer, otherwise we would have gone for resource bundle approach).
I have all JSPs translated to Japanese. So based on the user language selection, I have to forward to either say JP/someJSP.jsp or EN/someJSP.jsp.
I was wondering if there is any way where with little modification to struts-config.xml alone, this can be acheived.
Otherwise, I have to have something like this in in all my action classes ...
String lang = request.getParameter("Language");
mapping.findForward(lang+"_success");
and in struts-config.xml,
<forward name="EN_success" path="/webconsole/EN/someJSP.jsp"/>
<forward name="JP_success" path="/webconsole/JP/someJSP.jsp"/>
which looks very odd. I'm sure there is some other way...
Could anybody please help on this ASAP?
Thanks
Vidya.