aspose file tools*
The moose likes JSP and the fly likes how to remove toolbar,menubar from my jsp file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to remove toolbar,menubar from my jsp file" Watch "how to remove toolbar,menubar from my jsp file" New topic
Author

how to remove toolbar,menubar from my jsp file

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
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

Joined: Aug 18, 2008
Posts: 598

eliminate the code which is showing toobar and menubar..


My Blog SCJP 5 SCWCD 5
Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
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

Joined: Apr 29, 2008
Posts: 8
Use Javascript?

window.open("newpage.html", "newWindow", "toolbar=no, menubar=no")
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

OH! sorry for that. I thought you are talking about toolbar and menubar specific to your page.
Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
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

Joined: Aug 18, 2008
Posts: 598

This is possible using javaScript. As you can write some javaScript for that. Try to google it.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61232
    
  66

Originally posted by Himanshu Gupta:
This is possible using javaScript.

No, it's not.

And, Please read this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

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

Joined: Apr 15, 2006
Posts: 418
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to remove toolbar,menubar from my jsp file