Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

OC4J and Spring - problem with redirect  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an annoying problem that has arisen when deploying a simple web-app to OC4J - it seems. The setting is the following: i have a Login-jsp that after successful login and a subsequent "submit" should bring us to another form - a JobSubmissionForm.jsp. Now, I must confess there was enough hassle when deploying to Tomcat, but after browsing this forum I found the fix, namely that I had to put in a redirect in between the LoginController and the JobSubmissionForm.

Now, the exact same problem has arisen on deployment to OC4J! What's the deal?! Could it have something to do with the way OC4J resolves the JSP...? Note that the JobSubmissionForm.jsp works perfectly when called directly by means of pasting in an URL in the browser! I'd really appreciate som constructive feed back on this. I've checked the log and there are no complaints wrt binding and the like.

Snippets of code:

1. in LoginController.onSubmit()

return new ModelAndView(getSuccessView(), "jobSubmitCommand", jobSubmitCommand);


2. From ajsp-servlet.xml


<bean id="ajspLoginController" class="com.foobar.ajsp.controller.AjspLoginControl ler">
<property name="sessionForm">
<value>true</value>
</property>

<property name="commandName">
<value>loginCommand</value>
</property>

<property name="commandClass">
<value>com.foobar.ajsp.commands.LoginCommand</value>
</property>

<property name="authenticationService">
<ref bean="authenticationService" />
</property>

<property name="jobServices">
<ref bean="jobServices" />
</property>

<property name="themeChangeService">
<ref bean="themeChangeService" />
</property>

<property name="themeResolver">
<ref bean="themeResolver" />
</property>


<property name="formView">
<value>login</value>
</property>

<property name="successView" value="redirect:/jobsubmissionform.htm"/>
</bean>
 
It's just a flesh wound! Or a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!