0

Include or Script component problem

asked 2012-03-05 15:10:06 +0800

yohann gravatar image yohann
57

Hi !

In my controller, i try to execute jsp file with Include or Script component but the code is not interpreted !

zul file code:

<window apply="controller.front.CMyController">
<button id="m_btn_submit">Submit</button>
<script id="m_MyScript"/>
</window>

CMyController code :

Script m_MyScript = null;

public void onClick$m_btn_submit()
{
m_MyScript.setSrc("../jsp/my_jsp.jsp");
}

my_jsp file code :

<script type="text/javascript">
/* <![CDATA[ */
var id = 949124231;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.mydomain.com/test.js">
</script>

So when i click on the button, then the jsp code is not displayed in the navigator source code !

I'm in ZK version 5.0.6, is somebody has an idea ?

Thanks !

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-03-05 16:42:51 +0800

yohann gravatar image yohann
57

Anyone has try to execute jsp code in ajax mode ?

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: 2012-03-05 15:10:06 +0800

Seen: 127 times

Last updated: Mar 05 '12

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