• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Umm... I need to call a java program from an ASP script?

Mucman

Diamond Member
I have a program that will add a domain to my mailserver... I have a java program that does it without a problem but I need to integrate this program with the ASP setup script for a website... I am sorry I don't have much more detail, but I want to do as much in java as I can because it is the language I am most familiar with.
 
Unless you can put a COM object wrapper around it (so you can create it as an object) you may need to do it cgi-bin style by having the ASP page response include a frame page that comes from / is created by your java app. If you can do that in a "plain" html test page it will work in ASP as well.

You might do some Googling or wait for a better response though, since I've never had a reason to call java from ASP, just VB and C++ executables.
 
I don't know a thing about making COM wrappers so I am not going to touch that right now... I am using java because the API for the mail server admin can be done through java or PERL. I feel very comfortable with java, but not with perl so that is why I chose java. I think it is the wrong choice, but I have written so much java code that does work... I just need to automate some of it.

I noticed the ADSIBrowser code that we were experimenting with a while ago uses ASP and java, and it looks like the ASP files use the <APPLET> and <PARAM> tags to control the programs... the problem is that I don't need anything to come to the screen... the program should run in a blink of an eye.

I am sort of new to applets though... do applets need to be graphical in anyway? Could I just run the applet through once and it should work?

I am googling right now, but the Finland Canada game is on right now 🙂
I really think it is possible now, I just need to figure out how to do it.
 
I think I found something that will work!

mycmd = "d:\java\java AddDomain"
Set objShell = Server.CreateObject("WScript.Shell")
temp=objShell.Run(mycmd,0,True)
Set objShell = Nothing

 
Back
Top