Thursday, 5 September 2013


Microsoft Office MIME Types

FILExt does not presently have a search capability for MIME types however, in the interest of helping, this FAQ contains a complete list of the official Microsoft Office MIME types for the newest version of Microsoft Office (2007+).

To fully support the new types, web server administrators should add the MIME types for the Open XML formats to their Web server metabase settings so as to add the correct MIME type header in documents saved directly on the server and sent back.

The following table documents the HTTP MIME types that are available when working with Office 2007 documents:

Ext

MIME Type

.doc

application/msword

.dot

application/msword

.docx

application/vnd.openxmlformats-officedocument.wordprocessingml.document

.dotx

application/vnd.openxmlformats-officedocument.wordprocessingml.template

.docm

application/vnd.ms-word.document.macroEnabled.12

.dotm

application/vnd.ms-word.template.macroEnabled.12

.xls

application/vnd.ms-excel

.xlt

application/vnd.ms-excel

.xla

application/vnd.ms-excel

.xlsx

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

.xltx

application/vnd.openxmlformats-officedocument.spreadsheetml.template

.xlsm

application/vnd.ms-excel.sheet.macroEnabled.12

.xltm

application/vnd.ms-excel.template.macroEnabled.12

.xlam

application/vnd.ms-excel.addin.macroEnabled.12

.xlsb

application/vnd.ms-excel.sheet.binary.macroEnabled.12

.ppt

application/vnd.ms-powerpoint

.pot

application/vnd.ms-powerpoint

.pps

application/vnd.ms-powerpoint

.ppa

application/vnd.ms-powerpoint

.pptx

application/vnd.openxmlformats-officedocument.presentationml.presentation

.potx

application/vnd.openxmlformats-officedocument.presentationml.template

.ppsx

application/vnd.openxmlformats-officedocument.presentationml.slideshow

.ppam

application/vnd.ms-powerpoint.addin.macroEnabled.12

.pptm

application/vnd.ms-powerpoint.presentation.macroEnabled.12

.potm

application/vnd.ms-powerpoint.template.macroEnabled.12

.ppsm

application/vnd.ms-powerpoint.slideshow.macroEnabled.12

Wednesday, 6 February 2013

ApplicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                    http://www.springframework.org/schema/mvc
                    http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
                    http://www.springframework.org/schema/context
                    http://www.springframework.org/schema/context/spring-context-3.0.xsd
                    http://www.springframework.org/schema/tx
                    http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                    http://www.springframework.org/schema/aop
                    http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                       http://www.directwebremoting.org/schema/spring-dwr
                       http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd" xmlns:task="http://www.springframework.org/schema/task">

    <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="mappings">
            <props>
                <prop key="/homePage.htm">homePageController</prop>
            </props>
        </property>
    </bean>

    <!-- METHOD RESOLVER -->
    <bean id="calledMethodNameResolver" class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver">
        <property name="paramName">
            <value>actionName</value>
        </property>
    </bean>

    <bean id="homePageController" name="homePageController" class="com.merchantfinance.common.web.controller.HomePageController">
    </bean>

    <!--<bean id="samplePreparer" class="SamplePreparer">
    </bean>-->

    <bean id="messageSource"
        class="org.springframework.context.support.ResourceBundleMessageSource">
        <property name="basenames">
            <list>
                <value>Errors</value>
                <value>messages</value>
            </list>
        </property>
    </bean>

    <bean id="resourceViewResolver"
        class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
        <property name="basename" value="view" />
        <property name="order" value="1" />
    </bean>

    <bean scope="singleton" class="com.merchantfinance.util.FilterManager">
        <property name="globalFilters">
            <list>
                <bean class="com.merchantfinance.util.CustomAjaxFilter"/>
            </list>
        </property>
    </bean>

     <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
          <property name="definitions">
              <list>
                  <value>/WEB-INF/tiles-defs.xml</value>
              </list>
          </property>
         <property name="preparerFactoryClass" value="org.springframework.web.servlet.view.tiles2.SpringBeanPreparerFactory" />
      </bean>
    
    <!-- Imports -->
    <!--<import resource="study-service.xml"/>-->

</beans>