permaculture playing cards*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Frames in JSP" Watch "Frames in JSP" New topic
Author

Frames in JSP

Anonymous
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.
Nancy.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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.....
Bill
Anonymous
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:

<HTML>
<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" >
</FRAMESET>
<NOFRAMES>
Your browser does not support frames.
</NOFRAMES>
</FRAMESET>
</HTML>

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?
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Nancy,
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.
hth,
bear
[ February 18, 2002: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Frames in JSP