cgi java

cgi java - Java - Programmation

Marsh Posté le 01-06-2007 à 15:34:37    

bonjour  
j'ai le html suivant sur un serveur linux

Code :
  1. <HTML>
  2. <HEAD>
  3. <TITLE>Hello and Welcome!</TITLE>
  4. </HEAD>
  5. <BODY>
  6. <H1 ALIGN=CENTER>Hello and Welcome</H1>
  7. <hr>
  8. <FORM METHOD="POST"
  9.       ACTION="../cgi-bin/script.cgi">
  10. What is your name?
  11. <INPUT TYPE="text" NAME="name" VALUE="">
  12. What is your email address?
  13. <INPUT SIZE=40 TYPE="text" NAME="email" VALUE="">
  14. <INPUT TYPE="submit" VALUE="Submit">
  15. </FORM>
  16. </hr>
  17. </BODY>
  18. </HTML>


 
il appelle le cgi suivant:  

Code :
  1. #!bin/sh
  2. ../../dimsi/jre1.6.0_01/bin/java     -Dcgi.content_type=$CONTENT_TYPE     -Dcgi.content_length=$CONTENT_LENGTH     -Dcgi.request_method=$REQUEST_METHOD     -Dcgi.query_string=$QUERY_STRING     -Dcgi.server_name=$SERVER_NAME     -Dcgi.server_port=$SERVER_PORT     -Dcgi.script_name=$SCRIPT_NAME     -Dcgi.path_info=$PATH_INFO   hello


 
qui lance a son tour un java.class
 si ej lance le script a la main pas de probleme
 
mais a aprtir du html j'ai l'erreure suivante
The server encountered an internal error or misconfiguration and was unable to complete your request.
uen idée??
merci d'avance  
guillom

Reply

Marsh Posté le 01-06-2007 à 15:34:37   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed