• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet and Frame  RSS feed

 
Joe Schaffer
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody.

I have some questions regarding Frames and Servlets.

is it possible to load a servlet page in a frame?

is it possible to directly write the html code to a frame call? Instead of <Frame "URL=..." >
this
<Frame <Body> <HTML code> <\Body>
?

I need this because I generate HTML code dynamically in a Servlet without Frames and want to add a Frame which automatically performs a request on the server, let's say every minute. Therefore I just want to put my actual page in a Frame (adding hopefully only one line of code in the HTML generator) and the new frame just above the actual page like a small newsticker.

Thanks for your help,

Best regards

Joe
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets just produce markup ... they can't suddenly make browsers interpret markup in a different manner. So, you still have to produce something consistent with the HTML specs. Your answer: no.
 
Joe Schaffer
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply!

But what about HTML code directly put into the Frame? Is this possibile? Because then I would load a HTML page for the first frame and overwrite this file always if I have new information. The second frame should directly contain my HTML code.
<Frame <Body> <Code for page> </BODY> >

Is this somehow possible?

Joe
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's not possible with HTML, so it's not possible.

I'm not sure what you are really trying to do. How about giving us a clear description of your needs and then we can propose a means of achieving it that is possible.
[ July 16, 2004: Message edited by: Bear Bibeault ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!