Getting value in ZK by passing from java

Posted by Thida on Stack Overflow See other posts from Stack Overflow or by Thida
Published on 2012-11-14T03:58:10Z Indexed on 2012/11/14 5:00 UTC
Read the original article Hit count: 112

Filed under:
|
|

I could not take the value that I pass from JAVA code in ZK Spreadsheet (http://www.zkoss.org) file.

Here are what I am doing:

  • In java side I call the .zul file

    String filenames = "test.txt";
    htmlPane.setContentsURL("preview.zul?filename=" + filename);
    
  • In preview.zul file

    < zk > < zscript >< ![CDATA[ System.out.println(execution.getArg().get("filename")); ]] >< /zscript >
    < zk >

The the result is NUll

Could you help how to write the correct script? Thanks,

© Stack Overflow or respective owner

Related posts about java

Related posts about spreadsheet