cujigar1
Aug 28th, 2005, 06:55 PM
http://localhost:8080/brinder/login.htm?org.springframework.validation.BindExcep tion.command=org.springframework.validation.BindEx ception%3A+BindException%3A+0+errors&command=brinder.User%4020224a
why do i see such crap in the redirected url.
i have two controllers register and login,
<bean id="handlerMapping" class="org.springframework.web.servlet.handler.BeanNameUr lHandlerMapping"/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResou rceViewResolver">
<property name="prefix">
<value>/WEB-INF/jsp/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
<bean name="/login.htm" class="com.brinder.mvc.LoginController">
<property name="userDAOJDBC">
<ref bean="userDAO"/>
</property>
<property name="formView">
<value>login</value>
</property>
<property name="successView">
<value>index</value>
</property>
<property name="validator">
<bean class="com.brinder.mvc.UserValidator"/>
</property>
</bean>
<bean name="/register.htm" class="com.brinder.mvc.RegisterController">
<property name="userDAOJDBC">
<ref bean="userDAO"/>
</property>
<property name="formView">
<value>register</value>
</property>
<property name="successView">
<value>redirect:login.htm</value>
</property>
<property name="validator">
<bean class="com.brinder.mvc.UserValidator"/>
</property>
</bean>
first client visits /register.htm
presses submit button , registration accepted,
and successView property redirects to login.htm
but why do i see such rappy url in browser adress bar
http://localhost:8080/brinder/login.htm?org.springframework.validation.BindExcep tion.command=org.springframework.validation.BindEx ception%3A+BindException%3A+0+errors&command=brinder.User%4020224a
why do i see such crap in the redirected url.
i have two controllers register and login,
<bean id="handlerMapping" class="org.springframework.web.servlet.handler.BeanNameUr lHandlerMapping"/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResou rceViewResolver">
<property name="prefix">
<value>/WEB-INF/jsp/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
<bean name="/login.htm" class="com.brinder.mvc.LoginController">
<property name="userDAOJDBC">
<ref bean="userDAO"/>
</property>
<property name="formView">
<value>login</value>
</property>
<property name="successView">
<value>index</value>
</property>
<property name="validator">
<bean class="com.brinder.mvc.UserValidator"/>
</property>
</bean>
<bean name="/register.htm" class="com.brinder.mvc.RegisterController">
<property name="userDAOJDBC">
<ref bean="userDAO"/>
</property>
<property name="formView">
<value>register</value>
</property>
<property name="successView">
<value>redirect:login.htm</value>
</property>
<property name="validator">
<bean class="com.brinder.mvc.UserValidator"/>
</property>
</bean>
first client visits /register.htm
presses submit button , registration accepted,
and successView property redirects to login.htm
but why do i see such rappy url in browser adress bar
http://localhost:8080/brinder/login.htm?org.springframework.validation.BindExcep tion.command=org.springframework.validation.BindEx ception%3A+BindException%3A+0+errors&command=brinder.User%4020224a