Hello to All!!
Please suggest me how I can give an alias to forward path in struts manner. I mean:
in struts we write
As you can see the "success" name is alias of "/jsp/login.jsp" path. In spring we use viewResolver:Code:<action path="/process/login" type="com.my.site...."> <forward name="success" path="/jsp/login.jsp"/> </action>
As you know a real name of jsp file we need point in action class. I think it doesn't good idea, that's why I want to do it like in struts. How can I do it?Code:<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> <property name="prefix"><value>/WEB-INF/jsp/</value></property> <property name="suffix"><value>.jsp</value></property> </bean>
I tried to use something like that:
but didn't understand what must be in view.xml file. Can anybody show me example?Code:<bean id="viewResolver" class="org.springframework.web.servlet.view.XmlViewResolver"> <property name="location"><value>/WEB-INF/views.xml</value></property> </bean>
Thank you for your responses!


Reply With Quote