Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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: 60780

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
It is sorta covered in the JavaRanch Style Guide.
subject: Can I change the browser window size on "sendRedirect"?
Similar Threads
how does the servlet knows that the client has closed the browser
Servlets HttpSession
I've logged into Websphere Portal but request.getUserPrincipal() returns null
How to set size of servlet generated image to match size of browser window
Can I use RequestDispatcher to open a new browser window