| Author |
open a jsp page in different window
|
chain singh
Ranch Hand
Joined: Feb 28, 2012
Posts: 116
|
|
hello
how i can make a jsp page which is open in different window when it is loading.
when i type a url for a web page than that page should open in different window.
regards
Chain Singh
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12269
|
|
Open the new window/tab/whatever first, then type the URL in that window.
It is the client side that controls which window/tab/whatever gets the response, the HTML written by the JSP is just HTML.
Bill
|
Java Resources at www.wbrogden.com
|
 |
chain singh
Ranch Hand
Joined: Feb 28, 2012
Posts: 116
|
|
thanks for reply
but i wanted that when a user is login successfully it will redirect to a different window which have no menubar and toolbar.
how i can make jsp page like this which is alway open in new window when it is called
regards
Chain Singh
|
 |
Punit Jain
Ranch Hand
Joined: Aug 20, 2011
Posts: 902
|
|
which have no menubar and toolbar.
as William Brogden posted, this is a client side part, you can do this using window.open() of java script.
it takes arguments which disables menubars, scrollbars etc. on you browser window.
demo code:
|
 |
Piyush Mangal
Ranch Hand
Joined: Jan 22, 2007
Posts: 196
|
|
chain singh wrote:
but i wanted that when a user is login successfully it will redirect to a different window which have no menubar and toolbar.
This is not possible. You can not redirect to a new window from server. You will have to sign in with the window which has got no menubar or toolbar to achieve this.
|
 |
 |
|
|
subject: open a jsp page in different window
|
|
|