• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet and Frame

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic