-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4039149
By: mrzk
how can add the html code that a servlet returns to my page ?
i'd like to do the following
<zscript>
htmlFromTheServlet= callTheServlet();
....
manipulate htmlFromTheServlet and other stuff
....
</zscript>
i'd like to know if it's possible to have something that works like the first row in the code.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4039150
By: mrzk
the code in zscript is pseudocode....
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4040287
By: henrichen
Is that servlet in the same web application? If so, it is easy. Just call directly to the real service API.
If not in the same web application or you can only access to the servlet via http request, you will have to use something like UrlConnection to send an http request.
If all you want to do is to embed the returned html in this page, there are two ways to do that. You can use an <iframe src="..."/> or <include src="..."/>
/henri
Asked: 2006-12-01 07:58:51 +0800
Seen: 235 times
Last updated: Dec 02 '06