Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Frames in JSP

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic