File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Can I change the browser window size on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can I change the browser window size on "sendRedirect"?" Watch "Can I change the browser window size on "sendRedirect"?" New topic

Can I change the browser window size on "sendRedirect"?

Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
I am posting to a servlet, processing some information, and sending the user to a new browser on a new server. The result of this is a flash application that the user can access. Everything is working as expected. However, I'd like to be able to resize the window and remove toolbars. Things I'd normally do in JavaScript but can't currently because of the required processing in the servlet. Does anyone know if this is possible in the servlet?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60046

No. It can only be done by opening a new window with javaScript.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
you can resize the window when body loads, but in servlet, i don't think so
I agree. Here's the link:
subject: Can I change the browser window size on "sendRedirect"?
Similar Threads
Servlets HttpSession
How to set size of servlet generated image to match size of browser window
how does the servlet knows that the client has closed the browser
I've logged into Websphere Portal but request.getUserPrincipal() returns null
Can I use RequestDispatcher to open a new browser window