0

zk applet param

asked 2010-04-29 11:58:56 +0800

pymsoft gravatar image pymsoft
133 5

this is my code in html file and works ok.

applet.html

<html>
<head>
<title>Applet PrimoApplet</title>
</head>
<body>
<applet code="StampaSeriale.class" codebase="applet" archive="StampaSerialeS.jar" id="wd" width="500px" style="border: 1px" >
<param name="MESSAGGIO" value='\"SCARPE NIKE DA WEB\"1.000*500H1R\r\n1T\r\n'></param>
<param name="PORTA" value="COM1"></param>
</applet>
</body>
</html>


this is my code in a zul file

indexc.zul

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
	<window title="new page title" border="normal">
		<applet code="StampaSeriale" codebase="applet"
			archive="StampaSerialeS.jar" id="sr" width="800px"
			style="border: 1px" />
		<zscript><![CDATA[
	Map params = sr.getParams();
	params.put("MESSAGGIO", "\"SCARPE NIKE DA WEB CON ZUL\"1.000*500H1R" + '\r'
			+ '\n' + "1T" + '\r' + '\n');
	params.put("PORTA", "COM1");
	sr.setParams(params);
]]></zscript>
	</window>
</zk>


but the parameters dont work in a zul file.
(security error)

any idea?

thank you

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2010-04-29 11:58:56 +0800

Seen: 518 times

Last updated: Apr 29 '10

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