Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-166

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-166
    Summary: support for struts session locale
       Type: Bug

     Status: Unassigned
   Priority: Blocker

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             I18N
   Versions:
             1.1

   Assignee: 
   Reporter: Olaru Cristian

    Created: Wed, 5 Jan 2005 4:52 AM
    Updated: Wed, 5 Jan 2005 4:52 AM

Description:
I want to use Struts session locale (not HTTP request). Strutt messages are 
internationalizated as struts locale. But display tag as request locale.

For this. I do this in display tag:


# locale provider (Jstl provider by default)
  locale.provider=org.displaytag.localization.I18nStrutsAdapter

# locale.resolver (nothing by default, simply use locale from request)
  locale.resolver=org.displaytag.localization.I18nStrutsAdapter
        

In my action I do this (loc is my localization for test):
        
                //setLocale(request, loc);
                
                HttpSession session = request.getSession(true);
                session.setAttribute(Globals.LOCALE_KEY,loc);

This error is show: 

[ServletException in:/templates/tiles/content/stocuri/listaComenzi.jsp] 
org.apache.struts.util.RequestUtils.getUserLocale(Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;)Ljava/util/Locale;'
 

Is some like display tag use a a spring method and ...

Why?


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to