javaxmlsoapdev
Jun 10th, 2008, 04:13 PM
I have a Tab view in HTML where I display theree pages on one Tab. On first page (this page uses Spring MVC & SimpleFormController), I have a validatator.
<bean name="/issue" class="com.web.action.IssueAddController">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>issueForm</value></property>
<property name="commandClass"><value>com.domain.Issue</value></property>
<property name="formView"><value>issue</value></property>
<property name="successView"><value>issueTab</value></property>
<property name="issueManager"><ref bean="issueManagerImpl"/></property>
<property name="referenceDataManager"><ref bean="referenceDataManagerImpl"/></property>
<property name="emailManager"><ref bean="emailManagerImpl"/></property>
<property name="validator"><ref bean="issueFormValidator"/></property>
</bean>
Above is just one of the pages on the tab. Now when error occurs Spring shows an error correctly but forwards to "issue" <property name="formView"><value>issue</value></property> whereas I want it to display error on "issue" page but inside the Tab view
Basically, my requirement is : upon error want to forward to another controller along with error and request data(data entered on the issue page) instead of letting Spring use <property name="formView"><value>issue</value></property>
Anyone ?how can I make this happen. Any pointers would be appreciated.
Thanks,
<bean name="/issue" class="com.web.action.IssueAddController">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>issueForm</value></property>
<property name="commandClass"><value>com.domain.Issue</value></property>
<property name="formView"><value>issue</value></property>
<property name="successView"><value>issueTab</value></property>
<property name="issueManager"><ref bean="issueManagerImpl"/></property>
<property name="referenceDataManager"><ref bean="referenceDataManagerImpl"/></property>
<property name="emailManager"><ref bean="emailManagerImpl"/></property>
<property name="validator"><ref bean="issueFormValidator"/></property>
</bean>
Above is just one of the pages on the tab. Now when error occurs Spring shows an error correctly but forwards to "issue" <property name="formView"><value>issue</value></property> whereas I want it to display error on "issue" page but inside the Tab view
Basically, my requirement is : upon error want to forward to another controller along with error and request data(data entered on the issue page) instead of letting Spring use <property name="formView"><value>issue</value></property>
Anyone ?how can I make this happen. Any pointers would be appreciated.
Thanks,