Jump to content
We've recently updated our Privacy Statement, available here ×
  • HTML pages are missing the 'lang' tag at top of page content


    stasp
    • Version: v6.3 Product: JasperReports® Server

    Issue

    The following concern was raised by one of our users:

    Jaspersoft html pages are missing lang tag at top of page content. Where top of current html for Jaspersoft is: 
     
    <html> 
    <head> 
    <title>... page title..</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    </head> 
    ... page content here 
    </html> 
     
    should specify <html lang="en"> (for instance for English) at the top of the page. This both pre-sets the browser for the language (ensuring that cases where the browser detects a language translation are removed).

     

    Solution

     
    You should be able to add the lang tag to all the pages by editing the ../WEB-INF/decorators/decorator.jsp file and adding the lang attribute to the html tag like this: 
     
    <html lang="<%=org.springframework.context.i18n.LocaleContextHolder.getLocale().getLanguage()%>"> 
     
    Then save the file and restart the server. You may also need to clear browser cache to make sure the changes are displayed.

     

    _________

    Ref. case #01471419


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...