Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to include another web page in a page served by Jetty?

Thank you for your response Greg -


On Mon, Mar 30, 2020 at 10:09 AM Greg Wilkins <gregw@xxxxxxxxxxx> wrote:

Jetty supports the Servlet API feature of RequestDispatcher.include, so one URI/resource can be included in another page.  The trick is how do you trigger than in the content that you are generating?    From the servlet, it should be easy enough to get a RequestDispatcher and call it directly.  If you want to do this from static content, then you will need to use something like JSP to process that content and allow dynamic components to be added.   For wordpress... either do it in wordpress... or do something very complex about intercepting responses and rewriting with the new content - possible but a lot of work.

then I will better use jQuery in my test server pages to fetch and insert the web page content

Regards
Alex
 
 

Back to the top