File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Redirect after file upload

elicia dent
Greenhorn

Joined: Jul 13, 2009
Posts: 9
Hello
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.
Error:
java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)


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
Greenhorn

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


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61205
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Redirect after file upload