it is compliant to the standard of JSR-168, that have settled all that.
I have done a portal with 3 languages, and given consulting advice for another one in belgium : 3 languages too.
you have to manage the way you want the language to be choosen (at first visit, with the user preference, or let the user choose it when he wants).
and manage the way you store the choice...
that is a business choice... not a portal requierement... so you have to do it.
but it is not difficult.
for arabic (or chinese), be carefull with the encoding, etc...
but that is not specific to a portal : it is something for all application (web application, desktop application)...
there are plenty of post and answer about that in the forum.
search with the word "locale".
you have to manage the way you want the language to be choosen (at first visit, with the user preference, or let the user choose it when he wants). and manage the way you store the choice... that is a business choice... not a portal requierement... so you have to do it. but it is not difficult.
I have problem on manage the way of storing the choice. Can anyone advise me on this?
i put a language selection box on the header, and when the user change the language, it suppose to change the language of the portal and portlets. However, i have no idea how to pass the parameter from servlet to the portal and portlets.
i tried to use setAttribute with application_scope, but seems is not working because of they are not in the same war.
As you could do this:
If I select English to me to show all files that have English language, as you could do it?
ya. Finally i did it correctly. Thanks
You can share the information, please.
How do you do?
in jsp i put as juancito said in the previous post.
at the servlet i put
String paramter = req.getParameter("language");
String url = req.getParameter("url");
HttpServletRequest http_req = invocation.getServerContext().getClientRequest();
String lang = (String)http_req.getSession().getAttribute("language");
I am exactly in the same case of littleprince, but i have not understood one thing: how you can write a servlet that works with jboss portal?
i've tryed to write a servlet, i have modified the web.xml of the portal-core application and the sevlet is correctly initializeb, but it is never executed before, and the servlet mapping is correct
what do you mean when you say "i put this code in the servlet" ?
there is a system servlet of jboss portal that i don't know?
i put the code at jboss-portal.sar\portal-server.war\WEB-INF\web.xml