• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to remove toolbar,menubar from my jsp file

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am displaying my jsp file to the user.But,i do not want menu bar and tool bar in that file.Can anyone tell me how can i do that.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eliminate the code which is showing toobar and menubar..
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be my question was not clear.I want to hide toolbar,menubar.And,when we display jsp there is no code that we write to display toolbar,menubar as those things come by default.
 
Edward Nelson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Javascript?

window.open("newpage.html", "newWindow", "toolbar=no, menubar=no")
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OH! sorry for that. I thought you are talking about toolbar and menubar specific to your page.
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As i mentioned, i am in one jsp and want to hide menubar,toolbar for that jsp without creating any new page.But,window.open() will create new page.So, seems like it will not solve our requirement.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is possible using javaScript. As you can write some javaScript for that. Try to google it.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64964
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Himanshu Gupta:
This is possible using javaScript.

No, it's not.

And, Please read this.
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear. I never thought like that. That was a good article to read and to imply as well.
[ October 14, 2008: Message edited by: Himanshu Gupta ]
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
So, the final solution that i am thinking is that : during onLoad event of my first jsp, i will open second window which will pop up and once that is popped up ,first window will be closed.

Please let me know if any other better solution is there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic