0 Replies Latest reply on Jun 16, 2007 10:06 PM by Rafael Ribeiro

    jsp-property-group and mime-mapping

    Rafael Ribeiro Novice

      Hi all,

      I am trying to add treat an extension as a JSP file using jsp-property-group tag and at the same time have that extension mime type changed from default "text/html" to something else.
      The problem is that I could only have one of the two working. If I enable the jsp-property-group it starts ignoring the mime-mapping property. Does anyone know how I could solve this (apart from having a <%@ page %> tag on every file) ?

      Eg.:


       <jsp-config>
       <jsp-property-group>
       <description>Treats wml files as JSP</description>
       <url-pattern>*.wml</url-pattern>
       <is-xml>false</is-xml>
       </jsp-property-group>
       </jsp-config>
       <mime-mapping>
       <extension>.wml</extension>
       <mime-type>text/vnd.wap.wml</mime-type>
       </mime-mapping>
      


      regards,
      Rafael