aspose file tools*
The moose likes Servlets and the fly likes Build a servlet that generates in-line content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Build a servlet that generates in-line content" Watch "Build a servlet that generates in-line content" New topic
Author

Build a servlet that generates in-line content

Alamu Vinai
Greenhorn

Joined: Feb 01, 2001
Posts: 19
Build a servlet that generates in-line content. It's part of the servlet tutorial in sun's site. What is in-line content in the context of sending data from server to client?
Thanks.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
In this context, in-line content may be thought of as data or text which is intended to be included in another web page, rather than comprising a whole web page itself.
Consider the folowing two simple JSPs:
holder.jsp

The output of "content.jsp" should be designed to appear inside another page, so it should not generate all the <html>, <body> or whatever which a stand-alone page (such as holder.jsp) would need.
content.jsp

Can you see the difference ?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
jQuery in Action, 2nd edition
 
subject: Build a servlet that generates in-line content