0

manage servlet response

asked 2006-12-01 07:58:51 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-12-01 07:59:51 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4039150

By: mrzk

the code in zscript is pseudocode....

link publish delete flag offensive edit

answered 2006-12-02 02:11:24 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-12-01 07:58:51 +0800

Seen: 235 times

Last updated: Dec 02 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More