setting name of requested pdf in browser's title

Hi,

I have certain protected resources in my web application which requires user login. If login is successful, then we forward the user to the specified pdf resource.

Problem which I am facing is that after the login is successful, title of the browser remains the title of the login page. Our requirement is that it should display the title of the requested pdf instead of the login page title.

I did lots of r&d on http headers but no luck.

Is it possible to show the name of the requested pdf on the browser's title instead of the title of the login page?

My pdfs are in a content repository OpenCMS. Title is already set for all the pdfs.

Thanks

Naseem

[711 byte] By [nakhan81a] at [2007-11-26 19:16:31]
# 1
Did you try setting the "Content-disposition" header attribute to the HttpServletResponse ?
Deal_NoDeala at 2007-7-9 21:29:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Yes I already tried this. Setting Content-Disposition and then forwarding to the pdf gives application/pdf in the browser's tab. Title still remains the login.do i.e., same uri from where request was first forwarded.Naseem
nakhan81a at 2007-7-9 21:29:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Try changing the form method to "GET" specifically. I know I had solved this issue earlier but not able to recall how I did it.
Deal_NoDeala at 2007-7-9 21:29:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...