---------------------------------------------------- Please read the FAQ at <http://java.apache.org/faq/> It has a search feature and all the answers! ---------------------------------------------------- Hi, The original problem: A servlet outputs an html stream that itself contains servlet tags with the hope that the webserver will be gracious enough to interpret nested servlet tag and include its output in the original html stream. Unfortunately for many good reasons this is not possible. Neither can we use servlet chaining. Apache doesn't support it. So the problem still is: how to embed another servlet's output in a parent servlet's output stream? A suggested solution/hack: This worked for me. The parent servlet outputs a document template, i.e, the html it emits includes FRAMESET and FRAME tags only. The FRAME tag has a SRC option that contains the URL to the frame's content. I put in the nested servlet's name instead. This causes the client browser to *fetch* the nested servlet. NOTE: This nesting mechanism requires changes to how you would normally think of it. The parent servlet only issues FRAMESET and FRAME tag html (basically a document template, can't contain any BODY tags). The content is then constructed by different servlets, with each servlet populating a different frame. Email me if you have any questions/comments. FYI, naeem -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
