Re: [jetty-users] How to include another web page in a page served by Jetty?
On Wed, Apr 1, 2020 at 8:32 AM Greg Wilkins wrote: > If client side is an option, there are always simple iframes as an option > > Right! Thank you for the advice ___ jetty-users mailing list jetty-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
Re: [jetty-users] How to include another web page in a page served by Jetty?
On Tue, 31 Mar 2020 at 21:16, Alexander Farber wrote: > Thank you for your response Greg - > > > On Mon, Mar 30, 2020 at 10:09 AM Greg Wilkins 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 > If client side is an option, there are always simple iframes as an option > Regards > Alex > > > ___ > jetty-users mailing list > jetty-users@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/jetty-users > -- Greg Wilkins CTO http://webtide.com ___ jetty-users mailing list jetty-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
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 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 ___ jetty-users mailing list jetty-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
Re: [jetty-users] How to include another web page in a page served by Jetty?
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. cheers On Sun, 29 Mar 2020 at 12:58, Alexander Farber wrote: > Hello, > > I am using Jetty 9.4.27.v20200227 - > > 1) in production server to server Wordpress/PHP and a Java servlet > 2) in test server started locally at my Macbook to serve the Java servlet > > I wonder if there is some kind of configuration statement for Jetty which > would allow me to include other web pages inside the HTML web page files > served by Jetty. > > Then I would be able to emulate more functionality from the production > server (which uses PHP to include other web pages/URLs) in my test server. > > Thank you for any hints > Alex > > PS: Below are the config files of my test server, they are pretty simple - > > jetty.base/webapps/words.xml (to serve some static HTML pages): > > > "http://www.eclipse.org/jetty/configure_9_0.dtd;> > > /words > > > name="jetty.base"/>/../words > true > > > > > jetty.base/webapps/ws.xml (for the servlet and WebSockets): > > > "http://www.eclipse.org/jetty/configure_9_0.dtd;> > > /ws > name="jetty.base"/>/../WebSockets/target/ws-servlet-0.1-SNAPSHOT.war > > > etc. > ___ > jetty-users mailing list > jetty-users@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/jetty-users > -- Greg Wilkins CTO http://webtide.com ___ jetty-users mailing list jetty-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users