Binary file detection failing

22 views
Skip to first unread message

ivan...@gmail.com

unread,
May 6, 2014, 4:21:08 PM5/6/14
to sventon...@googlegroups.com
I´m trying to force 2 extensions to be displayed as text (def and arx) but the new WEB-INF/sventon-servlet.xml doesn´t have the textFileExtensionPattern. How to include it ?

Thanks !

My WEB-INF/sventon-servlet.xml is:

<?xml version="1.0" encoding="UTF-8"?>

<!--
 * ====================================================================
 * Copyright (c) 2005-2011 sventon project. All rights reserved.
 *
 * This software is licensed as described in the file LICENSE, which
 * you should have received as part of this distribution. The terms
 * are also available at http://www.sventon.org.
 * If newer versions of this license are posted there, you may use a
 * newer version instead, at your option.
 * ====================================================================
  -->

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context.xsd
           http://www.springframework.org/schema/mvc
           http://www.springframework.org/schema/mvc/spring-mvc.xsd">


  <context:component-scan base-package="org.sventon"/>
  <mvc:annotation-driven/>
  <!-- Uncomment to set a fixed locale regardless of browser accept headers.
    <bean id="localeResolver" class="org.springframework.web.servlet.i18n.FixedLocaleResolver">
      <property name="defaultLocale" value="en"/>
    </bean>
  -->

  <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
    <property name="prefix" value="/WEB-INF/jsp/"/>
    <property name="suffix" value=".jsp"/>
  </bean>

  <bean id="handlerMapping" class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
    <property name="alwaysUseFullPath" value="true"/>
  </bean>
</beans>

Jesper Hammarbäck

unread,
May 6, 2014, 6:00:20 PM5/6/14
to sventon...@googlegroups.com
Edit the file called 'WEB-INF/sventon-old-servlet.xml'. It's still in play even though it's called 'old'.

/Jesper



--
You received this message because you are subscribed to the Google Groups "sventon support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sventon-suppo...@googlegroups.com.
To post to this group, send email to sventon...@googlegroups.com.
Visit this group at http://groups.google.com/group/sventon-support.
For more options, visit https://groups.google.com/d/optout.

ivan...@gmail.com

unread,
May 7, 2014, 6:59:52 AM5/7/14
to sventon...@googlegroups.com, ivan...@gmail.com
Thanks ! It´s working now !
Reply all
Reply to author
Forward
0 new messages