File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Frames in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Frames in JSP" Watch "Frames in JSP" New topic

Frames in JSP

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
HI everybody!!
Maybe this is a small question, but I have to do it:
Is is possible to include a FrameSet in a JSP file? How?
I have tried to include an HTML file into a JSP file. The HTML contents the FrameSet, but it doesn't works!!
Help me, give me a hint!! PLEASE!!
Thanks in advance.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I would start with an all HTML mockup of the (frameset, etc) page you are trying to create, then substitute JSP in stages.
Suggestion: when asking for help, instead of saying "it doesn't work", say what actually happens - "crashes the server", "shows alien tv transmissions", "reports a 404 error" etc.....
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks William, but at first I did the HTML file that contents the FRAMESET tag and alone, it works excellent. The HTML file looks like this:

<FRAMESET rows="75,250*" frameborder="0" border="0" framespacing="0">
<FRAME name="FrameArriba" scrolling="NO" noresize marginwidth="0" marginheight="0" SRC="arriba.htm" frameborder="0">
<FRAMESET cols="128,127*" border="0" framespacing="0" frameborder="0">
<FRAME name="FrameIzquierda" scrolling="NO" marginwidth="0" marginheight="0" noresize SRC="izquierda.htm" frameborder="NO">
<FRAME name="FrameServicio" marginwidth="0" marginheight="0" noresize SRC="blanco.htm" frameborder="NO" >
Your browser does not support frames.

But when I include it in the JSP file, the information in the NOFRAMES part appears in the browser ("Your browser does not support frames.") when I call the JSP file.
Do I need to leave out some tags in the HTML file before include it in the JSP file? or what do you think I need to do?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

You wrote:
>But when I include it in the JSP file...
Shouldn't it be the other way around? Your frameset HTML file appears to be the complete page; what are you trying to accomplish by including it from another JSP page?
Have you looked at the HTML that had been sent to the browser via "View Source"? That might give a clue as to what's being generated that is confusing the browser.
[ February 18, 2002: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Frames in JSP
jQuery in Action, 3rd edition