• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

open a jsp page in different window

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1143
5
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic