0

How to call an external Servlet with POST

asked 2008-12-12 10:00:09 +0800

tommasofin gravatar image tommasofin
21

Hi,
I have a button in the my ZK application. When I receive the onClick event I need to open a new browser window and call an external servlet. I have to pass some parameters to this servlet via POST. In the new window I would like to see the response of the external servlet.

I know the method "Executions.sendRedirect", but I can't pass parameters in POST...

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-12-13 15:21:42 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

http://www.zkoss.org/smalltalks/paypal1/paypal1.html

I think add a form target to "_blank" will work for your case.

link publish delete flag offensive edit

answered 2008-12-15 11:45:10 +0800

dastultz gravatar image dastultz
797 9

I think you need to open the window as dennis suggests, but the page must be your own and the page must use JavaScript to POST to the server.

/Daryl

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: 2008-12-12 10:00:09 +0800

Seen: 698 times

Last updated: Dec 15 '08

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