aspose file tools*
The moose likes JSP and the fly likes open a jsp page in different window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "open a jsp page in different window " Watch "open a jsp page in different window " New topic
Author

open a jsp page in different window

chain singh
Ranch Hand

Joined: Feb 28, 2012
Posts: 117
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: 12787
    
    5
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
chain singh
Ranch Hand

Joined: Feb 28, 2012
Posts: 117
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: 1000
    
    2

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: open a jsp page in different window