File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Redirect after file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Redirect after file upload" Watch "Redirect after file upload" New topic

Redirect after file upload

elicia dent

Joined: Jul 13, 2009
Posts: 9
I am submitting a form to my jsp page, uploading it, and want to redirect back to the main page.
I get an illegal state exception.
Without the file upload, it works fine.

Many thanks
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Welcome to javaranch . Coming to your question, i guess you are trying to forward to some other page after redirect or vice versa . please post your code
elicia dent

Joined: Jul 13, 2009
Posts: 9
Thank you...

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Redirect after file upload
jQuery in Action, 3rd edition