extending IIS using Java

Results 1 to 2 of 2

Thread: extending IIS using Java

  1. #1
    Join Date
    Dec 1969

    Default extending IIS using Java

    I recently read an article about how I could use java in ASP. The ASP code is as follows: <BR><BR>&#060;% <BR> Dim javaObject <BR> Dim result <BR><BR> Set javaObject = GetObject("java:HelloWorld") <BR> result = javaObject.SayHello() <BR> Response.Write(result) &#039;should print Hello World<BR>%&#062; <BR><BR>The java code is as follows: <BR><BR><BR>public class HelloWorld <BR>{ <BR> public static void main(String[] args) <BR> { <BR> // Do nothing. But leave it here so we <BR><BR> // don&#039;t get any compiler warnings. <BR> } <BR><BR> <BR><BR> public String SayHello() <BR> { <BR> return "Hello World!"; <BR> } <BR>} <BR><BR><BR>The ASP getObject function should get the Java code and run the java code. Every time I try to run this script, I get an error message that says: <BR><BR>No object for moniker. <BR><BR>What does this mean? Is my simple test code wrong? <BR>How do I get this to work? <BR>

  2. #2
    Join Date
    Dec 1969

    Default ** CROSSPOST


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts