0

Passing variables from zscript to JSP

asked 2006-11-16 21:05:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

Hi,
I was wondering how you can pass variables from zscript to jsp. The reason I want to do this is that I have java backend code that currently interacts with JSP pages through javascript. I would like to rewrite the javascript interaction with the backend with zk listeners. I think I can connect with the java backend with just the zscript since the language used there is Java.
But, how would I communicate with the JSP code? The JSP code would need to stay as it uses struts. Thanks.




delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-11-17 01:55:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: henrichen

The zscript run on the server side so they are running in the same Java VM.
Theoretically, you can call any methods of your original codes. The only issue is that if you need to get reference to some existing objects, you need to provide a mechanism to do that.

Basically, you can think that you are writing a Java program. All classes you can access to.

/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-11-16 21:05:39 +0800

Seen: 414 times

Last updated: Nov 17 '06

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