Spring mapping
I am working on a project where I have to make a jsp page form where new users can request for their account creation. I have saved my jsp page in Pages outside Web-inf foler and i m doing coding in spring configuration file. I need to know whether im doing correct or not:
can i use url mapping with view resolver
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass">
<value>org.springframework.web.servlet.view.JstlView</value>
</property>
<property name="prefix"><value>/WEB-INF/jsp/</value></property>
<property name="suffix"><value>.jsp</value></property>
<property name="order"><value>1</value></property>
</bean>
<bean id="RequestAccountController" class="RequestAccountController"/>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/requestAccount.jsp">requestAccountController</prop>
</props>
</property>
</bean>
<bean id="nameViewResolver" class="org.springframework.web.servlet.view.BeanNameViewResolver">
<property name="order"><value>0</value></property>
</bean>
</beans>

