Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open a jsp page in different window

 
chain singh
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1012
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic