[JBoss Portal] - Re: Localization bug in 2.6.x?
by jvence
I have spent hours trying to figure this out and there really seem to be a problem. Is there a guide somewhere?
If you have 5 minutes, look at http://jira.jboss.com/jira/browse/JBPORTAL-1895
and try to reproduce it. You will see that something is wrong.
It's very simple to reproduce:
1. Add <supported-locale>ar</supported-locale> to portlet.xml
2. Identity_fr.properties to Identity_ar.properties (use fr just to test obviously)
3. Recompile and deploy
You will see that if you select Arabic, the UserIdentityPortlet is displayed in English rather then French. Is it possible that this has to do with the JVM not supporting ALL languages. I noticed that UserIdentityPortlet displays a list of all languages in the user's specified locale.
I'm at a complete loss. Any help would be greatly appreciated...
Jean
"thomas.heute(a)jboss.com" wrote : I don't think we provide pt_BR localization for some parts, the most translated parts are in french and Italian thanks to contributors.
|
| For pt_BR we have the previous UserPortlet which is translated partly, but that's about it.
|
| All the localization is the same mechanism for all languages. There is just no translations for every languages and every parts.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131156#4131156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131156
18 years, 2 months
[Tomcat, HTTPD, Servlets & JSP] - How can I control infinite requests?
by bunkenburg
What happens if the programmer writes an infinite request?
What if we have a servlet that may take a very long or infinite time to complete? Does that mean that every time some one sends a request to that servlet, one of the threads goes away to execute the servlet and never comes back? Is there any way that JBoss can monitor and kill such a thread?
Example servlet:
| protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
| try {
| String s = request.getParameter("N");
| int N = Integer.parseInt(s);
| PrintWriter writer = response.getWriter();
| for (int i=0; i<N; i++){
| writer.println(i + "/" + N);
| System.out.println(i + "/" + N);
| Thread.sleep(1000);
| }
| } catch (NumberFormatException e){
| throw new ServletException(e);
| } catch (InterruptedException ie){
| throw new ServletException(ie);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131149#4131149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131149
18 years, 2 months