Details

    • Type: Improvement
    • Status: Contributed Solution
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.3.3
    • Fix Version/s: 5.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      JVM: 1.4.2_12
      Liferay version: 4.3.2

      Description

      I have seen that portal pages are not XHTML validate; the most of these are not validate becouse the & is not written as "& amp;". I have tried to solve it by using a jtidy filter; JTidy is an API for XTML-iyng the pages.
      I have modified the web.xml of ROOT.war and i have added these rows:

      <!-- Angelo aggiunta filtro Jtidy per XHTML -->
      <filter>
      <filter-name>JTidyFilter</filter-name>
      <description>Filtro per validare XHTML le pagine</description>
      <filter-class>org.w3c.tidy.servlet.filter.JTidyFilter</filter-class>
      <init-param>
      <param-name>properties.filename</param-name>
      <param-value>scfconfiguration.properties</param-value>
      </init-param>
      </filter>
      <!-- Angelo fine aggiunta filtro Jtidy; il resto del web.xml รจ originale -->
      <!-- Angelo aggiunta del mapping sul filtro -->
      <filter-mapping>
      <filter-name>JTidyFilter</filter-name>
      <url-pattern>/c/portal/c</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>JTidyFilter</filter-name>
      <url-pattern>/group/*</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>JTidyFilter</filter-name>
      <url-pattern>/user/*</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>JTidyFilter</filter-name>
      <url-pattern>/web/*</url-pattern>
      </filter-mapping>
      <!-- Angelo fine aggiunta del mapping sul filtro -->
      And in my portal.ear in the lib directory i have added the file jtidyallinone-r8-SNAPSHOT.jar

        Attachments

        1. JTidy.zip
          2.42 MB
        2. jtidyallinone-r8-SNAPSHOT.jar
          317 kB
        3. Tidy.zip
          47 kB
        4. TidyProject.zip
          2.19 MB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Subcomponents