Results 1 to 13 of 13

Thread: java app issues

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    java app issues

    I have this html page, and when I open it locally it works, but when I open it in the browser served by apache(working debian) it gives me these errors:

    [Fri Jan 23 08:32:00 2004] [error] (13)Permission denied: exec of /usr/share/XIII/example1.html failed
    [Fri Jan 23 08:32:00 2004] [error] [client 168.215.215.99] malformed header from script. Bad header=Launching... /usr/lib/apache-s: /usr/share/XIII/example1.html
    eduffield@develop:~$


    I tried this so far:
    sudo chmod +X gen_validation.js
    sudo chmod 777 gen_validation.js
    sudo chmod +X example1.html
    sudo chmod 777 example1.html

    Premissions:
    12 -rwxrwxrwx 1 office office 9282 Jan 23 08:35 gen_validation.js




    Code:
    <html>
    <head>
    	<title>An Example of using the general validation function </title>
    </head>
    <SCRIPT language="JavaScript1.2" src="gen_validation.js"></SCRIPT>
    <body>
    <P align=center>
    <SCRIPT language="JavaScript1.2">
    var arrFormValidation=
                 [
                       [//2343
    						  ["maxlen=25",
    		"First Name should be 25 characters max(Consider changing your Name !)"
    						  ],
    						  ["minlen=1",
    		"Please Enter your First Name ( Contact support if you don't have one! )"
    						  ],
    						  ["alpha",
    		"Only alphabetic characters expected in your First Name"
    						  ]
                       ],
                       [//234
    						  ["maxlen=25"],
    						  ["minlen=1"],
    						  ["alpha"]
                       ],
                       [//234
    						 ["maxlen=50"],
    						 ["minlen=1"],
    						 ["email"," Please enter the correct Email address"]
                        ],
                        [//234
    						  ["numeric"]
                        ],
                        [//234
    						  ["maxlen=500"]
                        ],
                        [//Country
    						 ["dontselect=0",
    		"Please Select your Country [ if you are not from Mars :) ]"
    						 ]
                        ]
                ];
    </SCRIPT>
    <form action="" onSubmit="return validateForm(this,arrFormValidation);">
    <table cellspacing="2" cellpadding="2" border="0">
    <tr>
        <td align="right">Frst Name</td>
        <td><input type="text" name="FName"></td>
    </tr>
    <tr>
        <td align="right">Eail</td>
        <td><input type="text" name="Email"></td>
    </tr>
    <tr>
        <td align="right">Lst Name</td>
        <td><input type="text" name="LastName"></td>
    </tr>
    <tr>
        <td align="right">Pone</td>
        <td><input type="text" name="Phone"></td>
    </tr>
    <tr>
        <td align="right">Adress</td>
        <td><textarea cols="20" rows="5" name="Address"></textarea></td>
    </tr>
    <tr>
        <td align="right">Country</td>
        <td>
    	   <SELECT name="Country">
    		<option value="" selected>[choose yours]
    		<option value="008">Albania
    		<option value="012">Algeria
    		<option value="016">American Samoa
    		<option value="020">Andorra
    		<option value="024">Angola
    		<option value="660">Anguilla
    		<option value="010">Antarctica
    		<option value="028">Antigua And Barbuda
    		<option value="032">Argentina
    		<option value="051">Armenia
    		<option value="533">Aruba	
    	  </SELECT>
    	</td>
    </tr>
    <tr>
        <td align="right"></td>
        <td><input type="submit" value="Submit"></td>
    </tr>
    </table>
    </form>
    </P>
    </body>
    </html>
    Last edited by Evan; Jan 23rd, 2004 at 10:50 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width