Expand my Community achievements bar.

Forwarding a request not resolving i18n keys on the page

Avatar

Level 2

Hi ,

I am forwarding a request through request dispatcher to a page. Component of this page and corresponding i18n keys are in the same module . But my i18n keys are not getting resolved . 

While directly opening the same page from siteadmin renders the i18n kyes properly .

I am using the following code snippet :

  SlingHttpServletRequestWrapper wrapper = new SlingHttpServletRequestWrapper(request);

    RequestDispatcher dispatcher;

     dispatcher = wrapper.getRequestDispatcher(pagePath + ".html");
    dispatcher.forward(request, response);

Any pointers in this . Please help .

0 Replies