It's not a secret anymore!*
The moose likes Servlets and the fly likes I think I am going to die.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "I think I am going to die...." Watch "I think I am going to die...." New topic
Author

I think I am going to die....

Reilly Morris
Ranch Hand

Joined: Sep 11, 2001
Posts: 44
Hi folks,
I am a customer of a web host running Apache. He tells me I can run servlets off my hosting, and that all I need to do is upload the servlet to my main folder using FTP, then use SSH to move this file into a virtual folder called "jsp", which I have also done. My HTML form simply posts 3 params to the servlet, which should return them for display in the browser. Nothing amazing, not trying to save the world here, just trying to plumb my servlets on this hosting.
Now, he hasn't been much help, not knowing Java and all. My ACTION tag in the html looks like this (the actual domain name has been changed to protect the innocert):
FORM ACTION="http://www.myURL.com/ThreeParams"
The html file is located in another directory. That, I can safely say, works no problem. But as soon as I hit Submit, I get a 403 error. Assuming that my java has no synax errors (after all, I don't make java syntax errors), does anyone have any suggestions (other than turning to drink?).
Any help would be greatly appreciated. All I want to do is run a servlet off this thing...
Reilly


<b>Reilly</b> <br /><i>SCJP,J2EE,OOAD,iNet+,A+,CIW,<br />MCP,--</i>
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi reilly
can u ask to have a look at the log access from him? then u can probably drill down more to see what is causing the problem....
also u might ask him to give u restart access from the prompt so that u can have better view of things...
else i don't know the way out...its difficult to work things this way...
i guess u made sure that ur servlet is working fine when hosted in YOUR environment (u can test it in ur env first and make sure there is nth silly on ur part)...
regards
maulin
cer
Greenhorn

Joined: Sep 28, 2002
Posts: 8
o ,so good


Nice to meet you here.<br />I will learn from you.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
cer
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
Im new here, but I believe your form action url should have the word servlets in it. The server should be configured to read from a "servlet" or "servlets" directory.


N.D:"Anything worth having, takes time to get"
vagabond heart
Greenhorn

Joined: Sep 20, 2002
Posts: 2
Have you tried including the directory name, where your servlets or jsps are stored, in the action tag ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I think I am going to die....