JScript Sample: jscript/general/createobj/jarbeanparam.asp
   ASP Script
   Comments or Client-side Script
   HTML and Text

<%@language=jscript%>
<html>
<head>
<title>Accessing a .jar JavaBean with Parameters</title>
</head>
<body>
<p align="right"> <big> <a href="default.html"> Go Back </a> </big></p>
<p><big>Comment:</big> Reference a Bean sunw.demo.buttons.DemoCreateObject in buttons.jar with parameters, and access its properties and Methods </p>
<br>
<%
   var objinfo
   objinfo =Server.CreateObject("buttons.jar","sunw.demo.buttons.DemoCreateObject","ZhangHua","China",22,3456.456)
   Response.Write ("<p> Default proerties is : <big>")
   Response.Write ("<p> Name = " + objinfo.name)
   Response.Write ("<p> Address = " + objinfo.address)
   Response.Write ("<p> Age = " + objinfo.age)
   Response.Write ("<p> Salary = " + objinfo.salary + " </big>")
%>

<p> Using the repeatmessage method, the result is: </p>
<p> <big> <%= objinfo.repeatmessage(8) %>  </big></p>

</body>
</html>


Copyright © 1998-2002, Halcyon Software Inc. All rights reserved.