aspose file tools*
The moose likes Servlets and the fly likes How include servlet output in PHP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How include servlet output in PHP?" Watch "How include servlet output in PHP?" New topic
Author

How include servlet output in PHP?

Jessica Doe
Ranch Hand

Joined: Dec 11, 2003
Posts: 32
Hi!

Anyone know how to include servlet output in a PHP file? In a JSP file, I would be doing this:

<jsp:include page="Servlet?f=2" />

Thanks for any comments.

Jess


Jessica Doe<br /> <br />C# Online.NET<br /> <a href="http://wiki.csharp-online.net/" target="_blank" rel="nofollow">http://wiki.csharp-online.net/</a>
Al Petersen
Greenhorn

Joined: Nov 27, 2004
Posts: 9
Well, this is really a PHP question, not a servlet question, but here goes.

In a JSP, the <jsp:include> standard tag performs a dispatch... but you can only dispatch to a servlet from something else (servlet or JSP) in that web container. A PHP page isn't running inside that web container (unless running under some servlet bridge). You could do something like

in your PHP page to include the output of the servlet execution in your PHP.

- alan
 
jQuery in Action, 2nd edition
 
subject: How include servlet output in PHP?