I was trying to connect my java program to my website...
So I've got an HTML website form calling a python script which calls me java program.
when I run the python script on the server, it works.
however when I click the submit button on the website, it calls the python script, but the java program does not get called.
Here's some code:
index.html:
<form action="http://www.cs.mcgill.ca/~aansar2/myPrj/test.py" method = "post">
//blah blah...
</form>
test.py:
#!/usr/local/bin/python
import sys
import os
import cgi
print "Content-type: text/html\n"
form=cgi.FieldStorage()
os.system('java search balls' )
print "end of test.py"
If you know what 'could' be going wrong, please help
So I've got an HTML website form calling a python script which calls me java program.
when I run the python script on the server, it works.
however when I click the submit button on the website, it calls the python script, but the java program does not get called.
Here's some code:
index.html:
<form action="http://www.cs.mcgill.ca/~aansar2/myPrj/test.py" method = "post">
//blah blah...
</form>
test.py:
#!/usr/local/bin/python
import sys
import os
import cgi
print "Content-type: text/html\n"
form=cgi.FieldStorage()
os.system('java search balls' )
print "end of test.py"
If you know what 'could' be going wrong, please help