This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirection from a servlet doPost method

 
sonia pandit
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a multipart upload code in my doPost method which looks like this:



I get an error message as so:



If I uncomment the sendRedirect instead I get:

ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[code]

I have two applications, after logging in with a admin login on one application, they are redirected to the multipart update html page of another application.
This html posts to a servlet, I get a blank page when it posts to the servlet. I want it to redirect to the originating jsp where i want to write the file.
Not sure how to do this.

Thanks,

Sonia
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic