views:

905

answers:

0

The webapp uses Spring MVC.

<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="urlMap">
            <map>
                <entry key="/*" value-ref="defaultHandler"/>
            </map>
        </property>
        <property name="order" value="2"/>
</bean>
<bean name="defaultHandler" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>

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

So basically request like http://localhost:8080/application-context-folder/index.jsp should resolve to application-context-folder\index.jsp and they resolve to domain1\docroot\application-context-folder.

Is it by design or do I need to change something in the application or configuration ?

@Edit: there was a typo, the requested URL is http://localhost:8080/application-context-folder/index.jsp, not http://localhost:8080/index.jsp