Hello to All!!
Please suggest me how I can give an alias to forward path in struts manner. I mean:
in struts we write
Code:
<action path="/process/login" type="com.my.site....">
   <forward name="success" path="/jsp/login.jsp"/>
</action>
As you can see the "success" name is alias of "/jsp/login.jsp" path. In spring we use viewResolver:
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>
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?
I tried to use something like that:
Code:
<bean id="viewResolver" class="org.springframework.web.servlet.view.XmlViewResolver">
		<property name="location"><value>/WEB-INF/views.xml</value></property>
	</bean>
but didn't understand what must be in view.xml file. Can anybody show me example?
Thank you for your responses!