mwkohout
Apr 24th, 2006, 12:20 PM
Hello-
I'm using spring with velocity and I'm having trouble getting url rewriting to work. Are there any steps necessary to get Spring to do this?
What happens is that I go to the login page of my app, and, with cookies disabled, the page never returns.
Here's what mozilla is seeing(via it's Live HTTP headers plugin):
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
and here's a portion of my spring config file:
<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundl eViewResolver">
<property name="cache">
<value>true</value>
</property>
<property name="basename">
<value>student-views</value>
</property>
</bean>
and here's an example of my student-views.properties file:
loginView.class=org.springframework.web.servlet.vi ew.velocity.VelocityToolboxView
loginView.url=WEB-INF/velocity/portal/login.vm
loginView.toolboxConfigLocation=WEB-INF/toolbox.xml
am I missing anything? I'm feeling pretty dense for a monday.
thanks
Mike Kohout
I'm using spring with velocity and I'm having trouble getting url rewriting to work. Are there any steps necessary to get Spring to do this?
What happens is that I go to the login page of my app, and, with cookies disabled, the page never returns.
Here's what mozilla is seeing(via it's Live HTTP headers plugin):
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
GET /eservices/login.html?campusid=070
and here's a portion of my spring config file:
<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundl eViewResolver">
<property name="cache">
<value>true</value>
</property>
<property name="basename">
<value>student-views</value>
</property>
</bean>
and here's an example of my student-views.properties file:
loginView.class=org.springframework.web.servlet.vi ew.velocity.VelocityToolboxView
loginView.url=WEB-INF/velocity/portal/login.vm
loginView.toolboxConfigLocation=WEB-INF/toolbox.xml
am I missing anything? I'm feeling pretty dense for a monday.
thanks
Mike Kohout