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

Build a servlet that generates in-line content

 
Alamu Vinai
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic