Hi all,
I offer download of a file on my site. It sends content using
ServletOuputStream. This is the command that I exectly want to constraint
with Tomcat's security mechanism (I use JDBC Realm).
After user clicks on download, s/he gets forwarded to login. After login the
File Download popup apears, they choose location and save it. After the save
is performed, instead of going back to download page, it stays on login
screen.
The exception is
java.lang.IllegalStateException: Cannot forward after
response has been committed.
This kind of makes sense, the page that it forwards to is actually file
download. But I do not know how to get arround this problem. I'd like the
page that shows to be the one from where user clicked download.
If anyone can follow my problem, and has any kind of idea what I could do,
could you please help,
Regards
Damjan
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)